- Joined
- Feb 20, 2014
- Messages
- 409
Hi everyone.
First I added lumber,silver and stone ressources in my map
Here is how I did it :
First I added lumber,silver and stone ressources in my map
Here is how I did it :
-
Evénements
- Unit - A unit Acquiert un objet
-
Conditions
- (Triggering unit) Equal to Myhero
- (Item-type of (Item carried by Myhero of type stone)) equal to stone
-
Actions
- Objet - Remove (Item carried by Myhero of type stone)
- Set stone = (stone + 1)
- Multitable - Set the text for (Last created multiboard) item in column 2, row 2 to (String(stone))
- Texte flottant - Create floating text that reads +1 stone at (Position of (Triggering unit)) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Wait 0.50 seconds
- Texte flottant - Destroy (Last created floating text)
-
Events
- Unit - Forgeron 0012 <gen> Sell an item (from shop)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si - Conditions
- (Item-type of (Sold Item)) Equal to Armor
- silver higher or equal to 2
-
Alors - Actions
- Set silver = (silver - 2)
- Multitable - Set the text for (Last created multiboard) item in column 2, row 3 to (String(silver))
-
Sinon - Actions
- Objet - Remove (Sold Item)
-
Si - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Last edited: