- Joined
- Dec 11, 2010
- Messages
- 101
I have a problem with my system im trying to use. I've tried looking at other threads, but the same problem persists. When I try to create a random item, it will not do it in a random fashion. Instead, it creates the items in a specific order. (Double-Barrel Shotgun, Double-Barrel Shotgun, .357 Magnum, Wunderwaffe, BAR, Wunderwaffe)
Here's my triggers,
Here's my triggers,
-
Set VariableItem
-
Events
- Map initialization
- Conditions
-
Actions
- Set Item[1] = .357 Magnum
- Set Item[1] = BAR
- Set Item[3] = Double-Barrel Shotgun
- Set Item[4] = Wunderwaffe
-
Events
-
Untitled Trigger 001
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item carried by (Triggering unit) of type Mystery Weapon)) Equal to Mystery Weapon
-
Actions
- Set ItemRandomiser = (Random integer number between 1 and 4)
- Item - Remove (Item carried by (Triggering unit) of type Mystery Weapon)
- If (ItemRandomiser Equal to 1) then do (Item - Create .357 Magnum at (Center of Region 009 <gen>)) else do (Do nothing)
- If (ItemRandomiser Equal to 2) then do (Item - Create BAR at (Center of Region 009 <gen>)) else do (Do nothing)
- If (ItemRandomiser Equal to 3) then do (Item - Create Double-Barrel Shotgun at (Center of Region 009 <gen>)) else do (Do nothing)
- If (ItemRandomiser Equal to 4) then do (Item - Create Wunderwaffe at (Center of Region 009 <gen>)) else do (Do nothing)
-
Events