Hello,
I would like to know how to make a script work during a conversation.
For example I have a script that change scene. And I would like the script to function when the player choose the answer.
Example :
NPC : Do you want to go there ?
Player ; Yes (Execute the script to change scene)
Player : No (Nothing)
Thank you
Execute change scene script during conversation
Re: Execute change scene script during conversation
Hi,
You can use the LoadLevel() sequencer command in the dialogue entry node's Sequence field. If you're using the Dialogue System's save system, it will change scenes properly for use with the save system. Otherwise it will make a regular SceneManager.LoadScene() call.
You can use the LoadLevel() sequencer command in the dialogue entry node's Sequence field. If you're using the Dialogue System's save system, it will change scenes properly for use with the save system. Otherwise it will make a regular SceneManager.LoadScene() call.
Re: Execute change scene script during conversation
Works good thanks !
Re: Execute change scene script during conversation
Glad to help!