- Joined
- Aug 11, 2009
- Messages
- 605
Hi!
So basically I already have a code that adds 3 random creeps to a Tavern for the player to hire. However, it can sometimes add the same creep twice or more. I need help with a trigger which somehow removes the chance of adding the same creep more than once.
Current code:
Thanks for taking your time to read!
So basically I already have a code that adds 3 random creeps to a Tavern for the player to hire. However, it can sometimes add the same creep twice or more. I need help with a trigger which somehow removes the chance of adding the same creep more than once.
Current code:
-
Tavern Creeps 1
-
Events
-
Time - Elapsed game time is 5.00 seconds
-
-
Conditions
-
Actions
-
Countdown Timer - Start Timer_Round as a One-shot timer that will expire in 30.00 seconds
-
Countdown Timer - Create a timer window for (Last started timer) with title (Start Round + (String(Integer_Round)))
-
For each (Integer B) from 1 to 6, do (Actions)
-
Loop - Actions
-
Set Randomizer = (Random integer number between 1 and 29)
-
Neutral Building - Add Tier1[Randomizer] to Tavern[(Integer B)] with 1 in stock and a max stock of 1
-
Set Randomizer = (Random integer number between 1 and 29)
-
Neutral Building - Add Tier1[Randomizer] to Tavern[(Integer B)] with 1 in stock and a max stock of 1
-
Set Randomizer = (Random integer number between 1 and 29)
-
Neutral Building - Add Tier1[Randomizer] to Tavern[(Integer B)] with 1 in stock and a max stock of 1
-
-
-
-
Thanks for taking your time to read!