[Feature Request] CSC - add a when "value changed" option to Event Triggers

Requests for new Custom Stories or discussion of your new Custom Story ideas.
Forum rules
Please follow all Eek! Forum rules.
Post Reply
DeanWinchester
Posts: 16
Joined: Thu Oct 06, 2022 9:09 pm

[Feature Request] CSC - add a when "value changed" option to Event Triggers

I think it could make certain things easier if there was an option for an event to be triggered when a defined value changes.

For example, a spin the bottle game.

Player interaction
"spin bottle" -> sends game event "random int value (0,7)" - set to "player_landed_on_int" value

Play event trigger

"handle spin bottle" ->
when "player_landed_on" int Equal 1 -> send game event modify value "landed_on_patrick" equals 1

"handle land on patrick"
when "landed_on_patrick" Equal 1 ... do stuff


fwiw I think I can accomplish the same outcome using player interactions, but still working on testing it. But I think it could still be a nice feature for the CSC
DeanWinchester
Posts: 16
Joined: Thu Oct 06, 2022 9:09 pm

Re: [Feature Request] CSC - add a when "value changed" option to Event Triggers

Anyone looking for something similar, you can accomplish this by using the "Periodically" option and set it to like 0.3 seconds and have it check whatever value you want. Just be sure to have values set up to short-circuit these loops otherwise you'll get yourself into an infinite loop!
peter980
Posts: 1663
Joined: Thu Feb 15, 2018 1:50 am

Re: [Feature Request] CSC - add a when "value changed" option to Event Triggers

Correct, it can be worked around.

Me personally, I do not like creating very quick periodics, since having too many will affect game's performance.
Last edited by peter980 on Tue Oct 18, 2022 11:49 am, edited 1 time in total.
Post Reply