Warcraft III resources & community, 2003–2006 · archived

3 Spells need help with triggers

6 posts
#1

3 Spells need help with triggers

hey guys can u help me with some spells
1) dominate - user gains control of enemy hero for 2/3/4 seconds.

i cant get this to work, i had something like
Unit - a unit starts the effect of a ability
Ability - equal to dominate
Unit - change ownership of (target unit of ability being cast) to player 1 (only p1 can use this spell)

then i had a wait 3 seconds trigger, and then i would change the ownership of the unit back to its original owner, but it would never work, the unit would just stay in player 1 reds control.


2) Mesmerise - basically the target enemy would change ownership to neutral, and then id give them a effect so they cannot move/attack/be attacked, but im not sure how to do this,

3) Shape of the beast - user can pick a critter or neutral friendly unit wandering around the map and turn into them for a limited time.

i know ud have to do change ownership but how would u remove your hero, and then bring them back after the time limit?
#2
for dominate, i think u should use variable to store the player who owned the unit at first.
#3
Ok... as I can see all the spells have in common mind manipulation. Hopefully you can do some triggers and I can help you by giving you the trigger ideas you need. Check Raven's seduce spell to learn how to temporarily control an unit. For conditions like targeting a hero, a Neutral Passive unit check my Sacrifice spell. It helps you with such conditions. Hope you can do it ^_^. If you can't post back here and I'll try to clarify again.
#4
(target unit of ability being cast) is reset after a wait. Use local variables.

~The_Raven
#5
Just wondering... how many properties reset after waits?
#6
I've wondered about that myself, but I just local variables to be safe.

~The_Raven