- Joined
- Mar 17, 2005
- Messages
- 135
Anyone tell me why this is not working? It add 100 hitpoints to the building when item is purchased. Farm_Life is set to 300 in initilization trigger. The speacial effect works but does not add 100 hit points. Sometimes I overlook something so please help me : ).
-
Hit Points
-

Events
-


Unit - A unit Sells an item (from shop)
-
-

Conditions
-


(Unit-type of (Selling unit)) Equal to The Farm
-
-

Actions
-


Set Farm_Life = (Farm_Life + 100)
-


Set Temp_Point = (Position of (Selling unit))
-


Unit - Set life of (Selling unit) to (Real(Farm_Life))
-


Item - Remove (Sold Item)
-


Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


Custom script: call RemoveLocation (udg_Temp_Point)
-
-



