opened
LordPyrex
username_0
Hello username_1,
I had a question regarding variables and how to use custom ones. I've read the ValkyrieVars Wiki and I think I have an idea of how they work. I just didn't know if it was possible to write a custom variable and have Events interact like an incremental function. Or would this need to be written directly into the code of the scenario.
Thanks,
LP
Custom Variables
issue
closed
NPBruce
username_1
issue
created
NPBruce
username_1
This is the type of thing they are for.  Any variable starting with a letter is 'custom', just add a new variable and give it a name.  To increment use variable + 1 as an operation in an event.
comment
created
LordPyrex
username_0
I guess I just don't understand where to initialize it. The image is broken on the Quest Wiki
comment
created
NPBruce
username_1
https://github.com/username_1/valkyrie/wiki/ValkyrieVars
https://github.com/username_1/valkyrie/wiki/QuestIniEvent#conditions
https://github.com/username_1/valkyrie/wiki/QuestIniEvent#operations

"Vars do not need to be declared, all are initialised to 0."

The manual documentation section is much better than the editor section which has not been kept up to date.  Which image is broken, can you please provide a link?
comment
created
LordPyrex
username_0
https://github.com/username_1/valkyrie/wiki/QuestEditorGuideEventVars
The picture under the Event Flags Selection
comment
created
NPBruce
username_1
OK, care to help on #287?
comment
created
LordPyrex
username_0
I can try to do that. I'll see what I can come up with and submit something your way.
comment