Stormahawk
New Member
- Reaction score
- 2
For some reason, I cant sell hero items in AR mode.
Here is the trigger, its GUI
Here is the trigger, its GUI
Code:
ModePick
Events
Dialog - A dialog button is clicked for ModePick
Conditions
Actions
-------- FIX --------
Game - Force Player 1 (Red) to press the key A
Set Boolean = True
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to AllRandom
Then - Actions
Player Group - Pick every player in PlayersPlaying and do (Actions)
Loop - Actions
Set BuyingPlayer = (Picked player)
Player - Set (Picked player) Current gold to (((Picked player) Current gold) - 1700)
Unit - Create 1 RANDOM_HERO_ARRAY[(Random integer number between 1 and NUM_HEROES)] for BuyingPlayer at (BuyingPlayer start location) facing Default building facing degrees
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Hero[(Player number of (Owner of (Last created unit)))] Equal to No unit
Then - Actions
Set Hero[(Player number of (Owner of (Last created unit)))] = (Last created unit)
Else - Actions
Hero - Create Scroll of Town portal and give it to (Last created unit)
Hero - Create Amulet of Power and give it to (Last created unit)
Hero - Create Boots of Speed and give it to (Last created unit)
Unit - Remove (Sold unit) from the game
Set TempPoint = (Position of Random Tavern 0017 <gen>)
Player Group - Pick every player in PlayersPlaying and do (Actions)
Loop - Actions
Unit - Create 1 Wisp for (Picked player) at TempPoint facing Default building facing degrees
Custom script: call RemoveLocation(udg_TempPoint)
Game - Display to PlayersPlaying the text: ALL RANDOM MODE HAS...
Else - Actions
Set TempPoint = (Position of Random Tavern 0017 <gen>)
Player Group - Pick every player in PlayersPlaying and do (Actions)
Loop - Actions
Unit - Create 1 Wisp for (Picked player) at TempPoint facing Default building facing degrees
Custom script: call DestroyForce(udg_TempForce)
Custom script: set udg_TempPoint = null
Custom script: call DestroyTrigger( GetTriggeringTrigger() )