- Joined
- Nov 5, 2008
- Messages
- 536
I use Summon Serpent Ward spell to summon a unit.
The unit is not summoned for free, a trigger removes a set amount of gold and lumber every time a unit is summoned. But if a player has 50 gold in his bank and the spell "costs" 100 gold, the spell is casted anyway and only the 50 gold is removed.
I want this spell to be cast only if:
- Casting player has required amount of gold
- Casting player has required amount of lumber
- Casting player has enough food
So players can not summon units this way if they dont have enough gold and lumber to pay for the unit. Same goes with food, they need to have farms etc.
Any ideas how to make this?
The unit is not summoned for free, a trigger removes a set amount of gold and lumber every time a unit is summoned. But if a player has 50 gold in his bank and the spell "costs" 100 gold, the spell is casted anyway and only the 50 gold is removed.
I want this spell to be cast only if:
- Casting player has required amount of gold
- Casting player has required amount of lumber
- Casting player has enough food
So players can not summon units this way if they dont have enough gold and lumber to pay for the unit. Same goes with food, they need to have farms etc.
Any ideas how to make this?