- Joined
- Feb 12, 2005
- Messages
- 200
Doing different things with the editor learned me something.
I'v found a way to create multi instancibility triggers, without JASS but with variables.
Maybe others don't know this way, so I'll give here how to create it.
(This is a little tutorial)
When creating a Variable, ADD 10-12(Number of players) to it.
Now, when casting u maybe need to set the casting unit to a Variable. Use the following triggers to make it this time:
With this way, each unit will get he's own unique number when casting this, making it an multi instancibility number.
Next if u are going to create a spell:
Creating a point (just an example) where the hero is casting the ability. Also: MAKE ARRAY!
Now, the trigger for the point:
This is the casting point, so lets create a effect when casting Blizzard.
In this way it should to be work, Here it does!
A screenshot to prove :
Here I got control of both Am's by using the sharing ability!
Well I hope I gave some good information, Have fun with it!
I'v found a way to create multi instancibility triggers, without JASS but with variables.
Maybe others don't know this way, so I'll give here how to create it.
(This is a little tutorial)
When creating a Variable, ADD 10-12(Number of players) to it.
Now, when casting u maybe need to set the casting unit to a Variable. Use the following triggers to make it this time:
Code:
Set CastingUnit[(Player number of (Owner of (Casting unit)))] = (Casting unit)
With this way, each unit will get he's own unique number when casting this, making it an multi instancibility number.
Next if u are going to create a spell:
Creating a point (just an example) where the hero is casting the ability. Also: MAKE ARRAY!
Now, the trigger for the point:
Code:
Set CastingPoint[(Player number of (Owner of CastingUnit[(Player number of (Triggering player))]))] = (Target point of ability being cast)
Code:
Special Effect - Create a special effect at CastingPoint[(Player number of (Owner of CastingUnit[(Player number of (Triggering player))]))] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
A screenshot to prove :
Here I got control of both Am's by using the sharing ability!
Well I hope I gave some good information, Have fun with it!