Greetings.
I was hoping someone from the community could make a very small demo game
that is calling a random event. (could just be two or three random questions)
Or if there is already one, point me in the right direction.
I would be forever gratefull.... well.. maybe not FOREVER but close to 😉
Best regards
Leandar
Eh what exactly do you need? Not using Plugins or Scripts an event cannot be called randomly, but only by the Player. What you need to do instead is to add a new event page in that NPC with conditions, eg a simple Switch. Using Variable operations you can request random variables to set the switch on and off.
Hey V_Aero. Thanks for reply. In my head (which probably aren't fully functioning) this is what i need: PLAYER touch an EVENT which then call a random EVENT. The random event in this case being a 'show choices' EVENT or any 'common event' And the perfect thing would be an demo exsample. That way I would be sure to learn it.
1 way is to create serval common events
on the event with touch, create a variable and follow like this:
control variable x = 0 .... 3 // x being the variable ID with random number 0 to 3 (4 in total)
if variable x = 0
common event 1 (1 is name or ID what you want to call)
end
if variable x = 1
common event 2
end
if variable x = 2
common event 3
end
if variable x = 3
common event 4
end
when the event is being touch, a random common event is being called.
call the variable random and use it in many events that needs a random number,
make sure random is called first before anything else, make selfswitch A = ON
in every common event, and page 2 if you want to end the event after being touch.
page 2 = blank with selfwswitch A is on.
you can repeat the above in different ways and as many time as needed.
Thank you a lot ShadowDragon. Ive got it working. Much apreciated.