HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

No Cooldown? WHAT?

06-05-2004, 09:11 PM#1
Scyze
I have a custom spell based off Polymorph for a Cat & Mouse map (real original, eh?). I set the cooldown to 9 seconds, but whenever I use it, it doesn't have a cool down! Everything else works fine--it casts upon a structure that is a Wall (Chewable), removes it, shows a little special effect, then creates a Chewable wall in the same place a few seconds afterwards. Is my trigger affecting the cooldown?

Gnaw Spell
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to (Order(polymorph))
(Unit-type of (Target unit of issued order)) Equal to Wall (Chewable)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Ordered unit)) Equal to Player 1 (Red)
Then - Actions
Set Gnaw_Position[1] = (Position of (Target unit of issued order))
Special Effect - Create a special effect at (Position of (Target unit of issued order)) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
Unit - Remove (Target unit of issued order) from the game
Wait 9.00 seconds
Unit - Create 1 Wall (Chewable) for Neutral Passive at Gnaw_Position[1] facing Default building facing degrees
Else - Actions
Do nothing
06-05-2004, 09:25 PM#2
Vexorian
Why you are using orders instead of ability events?
06-05-2004, 09:27 PM#3
Scyze
Quote:
Originally Posted by Lord Vexorian
Why you are using orders instead of ability events?

First thing that came to mind to do. ^^;; Does it really matter, though?
06-05-2004, 09:34 PM#4
Vexorian
With that triggerm even if it worked, I would be able to cast polymorph on 13 units without caring about mana/cooldown
06-05-2004, 09:36 PM#5
Scyze
Gah! Are you going to tell me how to fix the cooldown problem or not? =\
06-06-2004, 04:04 AM#6
LegolasArcher
Quote:
Originally Posted by Scyze
I have a custom spell based off Polymorph for a Cat & Mouse map (real original, eh?). I set the cooldown to 9 seconds, but whenever I use it, it doesn't have a cool down! Everything else works fine--it casts upon a structure that is a Wall (Chewable), removes it, shows a little special effect, then creates a Chewable wall in the same place a few seconds afterwards. Is my trigger affecting the cooldown?

Gnaw Spell
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to (Order(polymorph))
(Unit-type of (Target unit of issued order)) Equal to Wall (Chewable)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Ordered unit)) Equal to Player 1 (Red)
Then - Actions
Set Gnaw_Position[1] = (Position of (Target unit of issued order))
Special Effect - Create a special effect at (Position of (Target unit of issued order)) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
Unit - Remove (Target unit of issued order) from the game
Wait 9.00 seconds
Unit - Create 1 Wall (Chewable) for Neutral Passive at Gnaw_Position[1] facing Default building facing degrees
Else - Actions
Do nothing
A few ideas:

1) Use ability being cast. It's much more stable in cases like this.
2) What did you base it off of? I could try to replicate it if I knew this.
06-06-2004, 06:11 AM#7
Scyze
Quote:
Originally Posted by LegolasArcher
A few ideas:

1) Use ability being cast. It's much more stable in cases like this.
2) What did you base it off of? I could try to replicate it if I knew this.

Dont mean to be impaitent, but...I JUST SAID I USED POLYMORPH! >_> This problem is annoying me...and why should the cool down not working have anything to do with the trigger? But I'll try it anyway.

EDIT: Oh, it worked! Thanks guys! I dont understand why that would affect cool down though...oh well.
06-06-2004, 06:15 AM#8
Pheonix-IV
i think its something to do with polymorph as a spell, i've always had trouble with it, i suggest changing to a diff ability, such as Storm Bolt.
06-06-2004, 08:39 AM#9
xGT4x
No, it was because the Order event, when the spell for example has 900 range and the unit is standing 1300 away from the target the order is when you order the unit to cast the spell, when you use starts the effect it's triggered when the mana is removed and the cooldown is activated!
06-06-2004, 09:00 AM#10
Anitarf
Of course it didn't work, you removed the target when your unit was given an order, so when the unit tried to execute the order, the target wasn't there. The ability wasn't even cast, and there was no cooldown.

Using "unit starts the effect of an ability" solves everything.
06-06-2004, 11:50 AM#11
LegolasArcher
Sorry about not noticing the polymorph thing, I was a little overtired last night :<. I believe, like Anitar, that using ability events would solve this. If you remove the target without waiting, the unit will never cast the ability. Also, you could cast this anywhere-- even out of the range!

I would use "Unit - Finishes Casting an ability" and the Event Responces to match.
06-07-2004, 08:22 PM#12
Vexorian
Starts the effect of an ability please, finishes casting an ability doesn't have responses different than triggering unit.
06-08-2004, 01:09 AM#13
Nabren
I should read replies before replying, deleted my content.