event sequencing

Hi people. Im a newbie in unity and javascript

I’m currently making RPG for our thesis. Since we’re following sequence of stories and events. My question is how to make events sequence editor script? or is there another way to sequenced the events.

thanks in advance.

If I understand your question you want something like:

#1 
stranger "hello"
opt0 "greet stranger" 2
opt1 "hit stranger" 3
#2
stranger "nice to meet you"
#3
stranger "I'll sue you"

You could try to put all your events into an array or a list and then run the desired entry based on what the player does or certain timing or whatever.