Add simple variable to conversation branches
FinalStand
Member Posts: 87
Conversations are cumbersome to build since you need pre/post scripts for many branches. It could be simplified greatly by adding a simple variable to branches instead of full scripts.
Currently:
What color do you like?
* Red [script s_selected_red]
* Blue [script s_selected_blue]
* dozen more options and scripts
OK, you picked Green
But with variables, you could just set Color=Red, Blue, Green, Etc when a player selects a branch. Then at the end just have *one* script that pulls the variable they selected.
Generally, that is a very common use case in PWs. Just selecting something from a conversation. You just need one variable to tell what the user selected, not dozens on scripts, lol
Currently:
What color do you like?
* Red [script s_selected_red]
* Blue [script s_selected_blue]
* dozen more options and scripts
OK, you picked Green
But with variables, you could just set Color=Red, Blue, Green, Etc when a player selects a branch. Then at the end just have *one* script that pulls the variable they selected.
Generally, that is a very common use case in PWs. Just selecting something from a conversation. You just need one variable to tell what the user selected, not dozens on scripts, lol
7
Comments
this is giant.
this functionality [and more] is already available w/nwnx_events, but it'd be cool to get it ootb.
Didn't tried it with text from NSCs yet.
z-dialog is just a token system, exactly what we want to avoid.
Only 15 votes on the trello though, not many scripters nowadays and even fewer reading the boards/trello.
You'll get much more support if asking for freaking portraits
Clearly you have not actually used it. It's exactly perfect for the kind of dialog FinalStand used in the example. One script for the whole thing, done