So I have a unit that sells items as well as moves around, and should do stuff.. He should build stuff based on what I tell him... So here is my problem.
When the player buys "build blacksmith" item from him, he should begin constructing the blacksmith, but for some reason he doesn't. Any ideas?
Code:
BuildBlacksmith
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Build Blacksmith
Actions
Set Temp_Point = (Position of (Selling unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Selling unit)) Equal to Player 1 (Red)
Then - Actions
Game - Display to (All players matching ((Owner of (Buying unit)) Equal to (Matching player))) the text: You have already co...
Unit - Order (Selling unit) to build a Tribal Blacksmith at (Center of GoodBlacksmith <gen>)
Else - Actions
Point - Remove Temp_Point
When the player buys "build blacksmith" item from him, he should begin constructing the blacksmith, but for some reason he doesn't. Any ideas?