dialogic icon indicating copy to clipboard operation
dialogic copied to clipboard

Poposal: Use "set" instead of "VAR" in text format of Set Variable event

Open Jowan-Spooner opened this issue 2 years ago • 1 comments

Set variable events are currently saved as

VAR {Player/Health} += 4
VAR MyAutoload.text = "Hello"
VAR {Player/Counter = "Oops"

The var makes sense from the code standpoint, but is strange/unintuitive for users. I suggest we use "set":

set {Name} = "john"

This would also make the syntax more similar to nathanhoads Dialog Manager plugin, which is a good thing imo.

The downside with this is that we use this text to identify the event, meaning no text event could start with this word. That's why I originally chose VAR. Still wanted to discuss this tho.

Jowan-Spooner avatar Aug 30 '22 12:08 Jowan-Spooner

We decided to go with set to be more similar to nathanhoads DialogManager syntax.

Jowan-Spooner avatar Sep 01 '22 15:09 Jowan-Spooner

Waitaminute. How did we agree on this and then never implement it... I'll try to do this asap.

Jowan-Spooner avatar Aug 26 '23 08:08 Jowan-Spooner