- Joined
- Oct 28, 2019
- Messages
- 523
I really has problem with custom script codes how can I memorize them?
An upgrade requires "Mercury" but is not working.... whats is going wrong with this trigger
and the trigger to return the mercury if the tech is canceled
An upgrade requires "Mercury" but is not working.... whats is going wrong with this trigger
-
Tech
-
Events
-
Unit - A unit owned by Player 1 (Red) Begins an upgrade
-
-
Conditions
-
(Researched tech-type) Equal to Blacksmith Upgrade
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
CountMercury Greater than or equal to 1
-
-
Then - Actions
-
Set VariableSet CountMercury = (CountMercury - 1)
-
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(CountMercury))
-
Set VariableSet Footman_train = True
-
-
Else - Actions
-
Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851976)
-
Game - Display to Player Group - Player 1 (Red) the text: |cffff0000Not enoug...
-
-
-
-
and the trigger to return the mercury if the tech is canceled
-
Cancel elven destroyer Copy Copy
-
Events
-
Unit - A unit owned by Player 1 (Red) Cancels an upgrade
-
-
Conditions
-
(Researched tech-type) Equal to Blacksmith Upgrade
-
Footman_train Equal to True
-
-
Actions
-
Set VariableSet CountMercury = (CountMercury + 1)
-
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(CountMercury))
-
-