- Joined
- Jun 24, 2024
- Messages
- 67
Hi guys,
i wonder why this does not work, is the destructible trigger not functional? i don't even get the message when the event happens.
I have also tried playable boundaries and whole map but no luck.. Here are my triggers:
i wonder why this does not work, is the destructible trigger not functional? i don't even get the message when the event happens.
I have also tried playable boundaries and whole map but no luck.. Here are my triggers:
-
Itemdrops
-

Events
-


Destructible - A destructible within Arena <gen> dies
-
-

Conditions
-


(Destructible-type of (Dying destructible)) Equal to Lootbox
-
-

Actions
-


Game - Display to (All players) the text: It goes
-


Set VariableSet RandomItemIDRange = 0
-


Set VariableSet RandomNumberGen = 0
-


Set VariableSet SelectedItemType = Empty Vial
-


Set VariableSet SelectedItemID = 0
-


-------- --------
-


For each (Integer A) from 1 to RandomItemID, do (Actions)
-



Loop - Actions
-




Set VariableSet RandomItemIDRange = (RandomItemIDRange + RandomItemWeight[(Integer A)])
-
-
-


Set VariableSet RandomNumberGen = (Random integer number between 1 and RandomItemIDRange)
-


For each (Integer A) from 1 to RandomItemID, do (Actions)
-



Loop - Actions
-




Set VariableSet RandomNumberGen = (RandomNumberGen - RandomItemWeight[(Integer A)])
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






RandomNumberGen Less than 0
-
-





Then - Actions
-






Set VariableSet SelectedItemType = RandomItemType[(Integer A)]
-






Item - Create SelectedItemType at (Position of (Dying destructible))
-






Custom script: set bj_forLoopAIndex = bj_forLoopAIndexEnd
-
-





Else - Actions
-
-
-
-
-

