- Joined
- Aug 23, 2008
- Messages
- 6
Hey I am new to the forum and I am working on a map callled Ultimate Footmen Special Edition (the unreleased version of ultimate footmen that was believed to have dissapeared two years ago)
During AR (All Random) mode I cannot sell items. Here is the trigger:
Players playing-Player Group-Empty Player Group
Buying player-Player- -none-
TempPoint-point - -none-
Random hero Array-unit type array(30)- -none-
NUM_Heroes-integer-20
The problem: Whenever I click on a shop to sell an item, nothing basically happens. I can click the item on the show but nothing will happen.
A friend suggested that I make a separate trigger that will let me sell items. Can someone please help me make one? I have tried many sell item triggers but they did not work.
During AR (All Random) mode I cannot sell items. Here is the trigger:
-
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() )
-
-
Players playing-Player Group-Empty Player Group
Buying player-Player- -none-
TempPoint-point - -none-
Random hero Array-unit type array(30)- -none-
NUM_Heroes-integer-20
The problem: Whenever I click on a shop to sell an item, nothing basically happens. I can click the item on the show but nothing will happen.
A friend suggested that I make a separate trigger that will let me sell items. Can someone please help me make one? I have tried many sell item triggers but they did not work.
Last edited by a moderator: