Hi there,
If the answer has already been covered, I apologize in advance.
Here's my dilemma! I'm trying to create situations where a randomly assigned variable will be called in a given event, and that value will trigger one of a handful of responses. I believe I understand how to make random variables call in an event. However, the only way I know how to use that data( the variable randomly called) is to make a chained series of conditions, where the 'else' statement is just another nested 'if' statement.
For example, I have an event that I want to call up 1 of 10 random actions. It rolls a 4. my event chain reads like: if 1, then A, else (if 2 then B, else (if 3 then C, else (if 4, then D, else))))
In the game I'm making, I want random events to occur each day, the event called is the new day event, and it would randomly grab one of these things to hit the player with. This gets miserable when I want to have 30+ random things that could happen on a given day. It can be done, but i feel like my lack of programing understanding is making this problem a lot harder than it needs to be. Can someone suggest a better way to do this? If it requires specific scripting, if you could provide an explanation or a link to a tutorial, i would appreciate it. It's such a specific thing I haven't had much luck searching it out online ._.
If the answer has already been covered, I apologize in advance.
Here's my dilemma! I'm trying to create situations where a randomly assigned variable will be called in a given event, and that value will trigger one of a handful of responses. I believe I understand how to make random variables call in an event. However, the only way I know how to use that data( the variable randomly called) is to make a chained series of conditions, where the 'else' statement is just another nested 'if' statement.
For example, I have an event that I want to call up 1 of 10 random actions. It rolls a 4. my event chain reads like: if 1, then A, else (if 2 then B, else (if 3 then C, else (if 4, then D, else))))
In the game I'm making, I want random events to occur each day, the event called is the new day event, and it would randomly grab one of these things to hit the player with. This gets miserable when I want to have 30+ random things that could happen on a given day. It can be done, but i feel like my lack of programing understanding is making this problem a lot harder than it needs to be. Can someone suggest a better way to do this? If it requires specific scripting, if you could provide an explanation or a link to a tutorial, i would appreciate it. It's such a specific thing I haven't had much luck searching it out online ._.