- Joined
- Mar 24, 2020
- Messages
- 80
Hi!
I have an item in my game that has set effects depending on whether it is day or night.
Below is a trigger I am having issues with.
When the event occurs where it hits 6PM/6AM - this trigger is supposed to replace the item with the night/day variant.
Below is the trigger. Let me know if there is something obvious i'm doing wrong or if you may see why there can be a crashing issue.
I have an item in my game that has set effects depending on whether it is day or night.
Below is a trigger I am having issues with.
When the event occurs where it hits 6PM/6AM - this trigger is supposed to replace the item with the night/day variant.
Below is the trigger. Let me know if there is something obvious i'm doing wrong or if you may see why there can be a crashing issue.
-
Day Time
-
Events
-
Game - The in-game time of day becomes Equal to 6.00
-
-
Conditions
-
Actions
-
Set VariableSet DayTime = True
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has an item of type Night Time Item) Equal to True)) and do (Actions)
-
Loop - Actions
-
Hero - Drop (Item carried by (Picked unit) of type Night Time Item) from (Picked unit).
-
Item - Remove (Last dropped item)
-
Hero - Create Day Time Item and give it to (Picked unit)
-
-
-
-
Last edited: