• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

heelp, spell triggers don't work

Status
Not open for further replies.
Level 2
Joined
Oct 16, 2005
Messages
26
Ok, here's a spell, Rotting Touch.
It's supposed to cause blight in the area and shortly after that destroy all trees there.

First of all, the dummy spell is based on Flame Strike. It has no damage, no casting time, no duration, no buffs/effects and no targets allowed. It's range is 600.00, area of effect is 200.00. (is this important? :p)

here's the trigger

----------------------------------
Events:
A unit Finishes casting an ability

Conditions:
(Spell being cast) Equal to Rotting Touch

Actions:
-Environment - Create Blight for Neutral Passive from (Target point of ability being cast) to a radius of 200.00
-Wait 1.00 seconds
-Destructible - Pick every destructible within 200.00 of (Target point of ability being cast) and do (Actions)
Loop - Actions:
Destructible - Kill (Picked destructible)
---------------------------------

Now the problem is, when I cast the spell, nothing happens. My mana decreases, spell is put on cooldown yes. But nothing happens! Trees still standing there. No blight.

The trigger just doesn't trigger.


In an older version , I had targets allowed: Tree. And what happened! Trees in the area would instantly die (even though dummy spell has 0 damage) but no blight or 1 second delay before killing trees would appear.



What the hell is wrong?
 
Level 6
Joined
Sep 17, 2005
Messages
276
hm... you could try following:

make your spell in object editor that it will destroy destructibles/doodads too allowed targets...) - or just doodads, click on all you want to damage. so you have to add damage, range and all that again.
then set the casting time of your spell to what u want - lets say 2 sec.

now the spell should destroy doodads after 2 seconds - so far so good.

now the trigger for the blight:

Code:
Events: 
A unit starts casting an ability 

Conditions: 
(Spell being cast) Equal to Rotting Touch 

Actions: 
-Environment - Create Blight for Neutral Passive from (Target point of ability being cast) to a radius of 200.00


Now it should work correct. anyway this trigger reduces memory leak (causes lagg after a while)too because u didnt use function pick every doodad... :wink:
 
Level 10
Joined
Jul 2, 2004
Messages
690
actually you could just use the blight creation ability from Sacrificial Skull to create blight.
 
Level 2
Joined
Oct 16, 2005
Messages
26
hmm, thanks again.

Here's another ^^

K i want to make my immolation (with 25 dmg per sec to all other targets) instantly destroy trees that the unit comes close to.

But I'm worried about lag issues...
Currently it's like this:

Every 1.00 seconds

Pick every destructible within 156 of Unit and do...
Create special effect on picked destructible using Fire
Kill picked destructible
Wait 0.90 seconds
Remove last created special effect



Is there a way to do this without causing this kind of lag?
 
Level 6
Joined
Sep 17, 2005
Messages
276
maybe you make another dummy-spell which only 'attacks' destructibles only - with high damage and your range. that way you will reduce laggs highly. hm... :?
 
Level 2
Joined
Oct 16, 2005
Messages
26
frostultimate.jpg


For some reason, this trigger only causes everyone to permanently get half speed, and only me (casting unit) gets the frost nova special effect. Also there is no weather effect.

:?:
 
Level 6
Joined
Sep 17, 2005
Messages
276
"for some reason the trigger causes everyone got only half speed:"

erm... ye thats was a pick every unit in whole map does or not?

for the special effect i dont know exactly why it only appears on yourself and not on others...

btw dont forget to destroy your special effect again ->otherway you will cause leaks..

and im not sure, but it could be that weather effects only work on map init - over the next days i will be able to watch exactly if i will get WEU again. :wink:
 
Level 2
Joined
Oct 16, 2005
Messages
26
look its supposed to reset movement speed after 20 sec, but they get half speed permanently!!

so, destroying the special effect works on everything picked? not just one unit?
Wish there was Special Effect Group :p
 
Level 2
Joined
Oct 28, 2005
Messages
6
Also there is no weather effect.

For a weather effect to work, you need to first create the weather effect, then you need to enable or disable it.

Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
Environment - Turn (Last created weather effect) On

When you wanna remove the weather effect you'll have to disable it. So... you'll need a variable for the weather if i'm not mistaken. Hope this helps
 
Level 6
Joined
Sep 17, 2005
Messages
276
does it work now? cz could also be that the wait 20 sec within the pick-function causes mistakes. maybe make the first pick-fctn then wait 20 sec then another pick-fctn...
 
Level 2
Joined
Oct 16, 2005
Messages
26
Ah man, that makes sense... Perfect sense, specially since pick unit is originally supposed to do only one action.

Hm, Wait functions are deadly :lol:

im at school right now but ill try in two hours
 
Level 3
Joined
Oct 16, 2005
Messages
48
Jeez u hate trees..

But neways the imolation spell just change the things that can be targeted to trees doodads or debris whatever it is
 
Level 6
Joined
Sep 17, 2005
Messages
276
ok. no problem :wink:

oh and btw: i saw your avatar on web too and considered about taking a funny avatar too, but u were faster :wink: .
hm... i think i stay with my avatar for now till i can make my own one...
 
Level 2
Joined
Oct 16, 2005
Messages
26
:twisted: well Sunny mine isnt the only funny avatar out there :wink:

Now, I goin to turn all trees into snowy trees.
However not going to touch canopy trees since they have smaller pathing than regular trees and that might cause problems.

So regular trees become snowy trees, the only problem is that there doesn't seem to be a way to check destructible types.
 
Level 2
Joined
Oct 16, 2005
Messages
26
Clan_SRS said:
Jeez u hate trees..

But neways the imolation spell just change the things that can be targeted to trees doodads or debris whatever it is
Ya well I tried that, trees don't get affected a shit. :?
Same thing with Shockwave. Trees just don't take damage.



And yeah, it's a tree cutting map :roll:
 
Level 6
Joined
Sep 17, 2005
Messages
276
hm... well i think there IS a way to check destructible-type, but im not sure about that. my notebaook has to be repaired for now, so i cant check that within the next days.
i will have a look as soon as possible. :?
 
Level 2
Joined
Oct 16, 2005
Messages
26
aye, i'd think there is a way to check it, just can't find it :p

(ouch, signature got too big.. :roll: )
 
Status
Not open for further replies.
Top