Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,219
hello there i got another question in the world editor
so i wanted to make a roll system for my map but i did not really work.
so the problem is that the item wich is being rolled for dont being transferd to the wining unit.
i think that the problem is in this trigger but im not sure
so i wanted to make a roll system for my map but i did not really work.
so the problem is that the item wich is being rolled for dont being transferd to the wining unit.
i think that the problem is in this trigger but im not sure
- Item Drop
- Events
- Unit - Aunit Loses an item
- Conditions
- Actions
- Set Roll_for_this_item _ (Last dropped item)
- Item - Remove (Last dropped item)
- Trigger - Run roll for item <gen> (Ckecking conditions)
- roll for item
- Events
- Conditions
- Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 1 (Red) controller) Equal to User
-
Then - Actions
- Set roll_count[1] = (Integer((String((Random integer number between 1 and 100)))))
- Game - Display to (All players) the text: (Name of Player 1 (Red))
- Game - Display to (All players) the text: Rolls for
- Game - Display to (All players) the text: (String((Random integer number between 1 and 100)))
-
Else - Actions
- Do nothing
-
If - Conditions
- Do nothing
- Wait 4.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 3 (Teal) controller) Equal to User
-
Then - Actions
- Set roll_count[2] = (Integer((String((Random integer number between 1 and 100)))))
- Game - Display to (All players) the text: (Name of Player 3 (Teal))
- Game - Display to (All players) the text: Rolls for
- Game - Display to (All players) the text: (String((Random integer number between 1 and 100)))
-
Else - Actions
- Do nothing
-
If - Conditions
- Wait 4.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 4 (Purple) controller) Equal to User
-
Then - Actions
- Set roll_count[3] = (Integer((String((Random integer number between 1 and 100)))))
- Game - Display to (All players) the text: (Name of Player 4 (Purple))
- Game - Display to (All players) the text: Rolls for
- Game - Display to (All players) the text: (String((Random integer number between 1 and 100)))
-
Else - Actions
- Do nothing
-
If - Conditions
- Wait 4.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- roll_count[1] Greater than roll_count[2]
- roll_count[1] Greater than roll_count[3]
-
Then - Actions
- Game - Display to Player Group - Player 1 (Red) the text: You have won the ro...
- Hero - Create (Item-type of Roll_for_this_item) and give it to Picked_Hero
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Item carried by Picked_Hero in slot 1) is owned) Equal to True
- ((Item carried by Picked_Hero in slot 2) is owned) Equal to True
- ((Item carried by Picked_Hero in slot 3) is owned) Equal to True
- ((Item carried by Picked_Hero in slot 4) is owned) Equal to True
- ((Item carried by Picked_Hero in slot 5) is owned) Equal to True
- ((Item carried by Picked_Hero in slot 6) is owned) Equal to True
-
Then - Actions
- Hero - Give (Last created item) to Banker
- Game - Display to Player Group - Player 1 (Red) the text: Your Won Item has b...
-
Else - Actions
- Do nothing
-
If - Conditions
-
Else - Actions
- Game - Display to Player Group - Player 1 (Red) the text: You have lost the r...
-
If - Conditions