- Joined
- Apr 7, 2012
- Messages
- 29
When unit type "egg" reached 100 mana. create unit type "spider" at position of "egg". Kills unit type "egg".
Event
Unit-Unit X's mana becomes greater than 100
Action
Create 1 Unit for player 1 at position of unit X
Kill unit X
Like this??
Unit - Create (Number of units in EggGroup) Spider for Player 1 (Red) at Pos facing Default building facing degrees
Unit - Remove Eggs from the game
Better use "replace unit" action. It will do both actions removes unit and creates unit at the same time and uses less space.
___________________________________________________________________________________________
When unit type "egg" reached 100 mana. create unit type "spider" at position of "egg". Kills unit type "egg".
What do u think about adding "custom ability" to unit which would use 100mana.
When u reaches 100mana you just press that ability by your self and trigger activates.
It may only require 1ability with some lvl's for all units and triggers, like:
EGG - Custom ability (lvl1 - needs 100mana.)
Spider - Custom ability (lvl2 - needs 200mana.)
and so on...
than trigger would be like this:
EVENT
Unit starts the effect of the ability.
Condition
(Ability being cast) equal to "Your ability"
Actions
If then else
Conditions
Unit (Unit type of (casting unit)) equal to "your unit"
Than Actions
Unit - Unit replace casting unit with "your unit2"
Else Actions
If then else
Conditions
Unit (Unit type of (casting unit)) equal to "your unit2"
Than Actions
Unit - Unit replace casting unit with "your unit3"
Else Actions
I think killing egg would be more apropriate. For eye candy matters(I assume egg is some of the spider eggs war3 has)
Time - Every 0.01 seconds
Time - Every 1.00 seconds
AgreeY
PLS Time every sec. makes map go laggy. Triggers start leaking. It may ruin the map.
There's other ways to do this without "time every sec.".