- Home /
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.
Answer by schaddemm · Jan 29, 2013 at 11:46 PM
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.
yes. thanks for your suggestion i will definitely try that one. :D Let's say i have put all my events in an array, and my character activates an event, will said event still be repeatable after it's been activated
depends on how you program it, you could put (hasrun==0) as a condition for the event to have any effect for example.
Your answer
Follow this Question
Related Questions
Editor script - any callback when target is first instantiated? 1 Answer
UnityEvent draws debug variables in the inspector 0 Answers
Perform action on save/load in editor 2 Answers
Custom Asset Icons? 2 Answers