PDA

View Full Version : [Trigger] difficult triggering...


scum_monkey
09-30-2008, 03:43 PM
hello,
Im having difficulty creating a trigger, i want a ranged unit to respond to a passive ability being used, eg evasision, it then needs to change form into the same unit but with a melee attack (i've already made two units, one with a ranged attack and the same unit with a melee attack) keeping the same mana/hp as the old unit. it should then be made unselectable by the player who owns it and then forced to attack move to a random point of the map, wait 20 seconds then revert to the orginal unit keeping the current units mana/hp. keeping in mind that more than one unit may be going beserk within any given 20 seconds im not sure how the unit could be replaced again.

if you can help you can use as many triggers as you need, the melee version of the unit will never buildable so a blanket trigger could be used for units of that type and just so you know this move is replicating a brute from halo 2/3 which goes beserk.

thanks for any help you can give me with this.

Squiggy
09-30-2008, 04:11 PM
Well normally you can't detect the use of a passive ability (at least in gui as far as I know)

xD.Schurke
09-30-2008, 04:22 PM
you only can detect it if u trigger the passiv ability, so you would have to create a trigger for evasion in this case

Squiggy
09-30-2008, 04:53 PM
Well you could check if the unit has the ability via Integer comparison - LEvel of ability greater than 0 and base it upon that

xD.Schurke
09-30-2008, 05:05 PM
that would be also solution, but there would be the problem, that for example if u want a effect on the "evade"-event it wouldn't be possible, but if u want a additional effect it would work like squiggy said

scum_monkey
09-30-2008, 09:40 PM
hmm ok then thx, can you guys think of a way to do it without the ability? just have a percent chance that the trigger will be activated when that unit type is attacked? if not i'll try using intergers...

Jaijaibinx
10-01-2008, 05:14 PM
Here My Own Interpretation enjoy have fun give credits... Yada yada yada see ya at skl

scum_monkey
10-01-2008, 07:44 PM
lol cheers noddy :xxd: what is this credit thing u speak of? :razz: cya tomorrow lol