Forum Discussion
Dealing with the naming of variables
- 3 months ago
If you change the variable names by editing them in the Variables window, Storyline will automatically adjust the names in the triggers.
Of course, you still have to rename all the variables if you include scene & slide numbers and then insert an extra slide. But at least you only have to do it once in the window, instead of locating all of the uses in the slide triggers.
BTW, I also recommend keeping the names as short as possible, so you can ID a variable by the first part of the name. For example, instead of "Slide11" for scene1, slide 1, I suggest "1_01."
If you change the variable names by editing them in the Variables window, Storyline will automatically adjust the names in the triggers.
Of course, you still have to rename all the variables if you include scene & slide numbers and then insert an extra slide. But at least you only have to do it once in the window, instead of locating all of the uses in the slide triggers.
BTW, I also recommend keeping the names as short as possible, so you can ID a variable by the first part of the name. For example, instead of "Slide11" for scene1, slide 1, I suggest "1_01."
- JeroenVerhoeckx3 months agoCommunity Member
I think this is a good solution. In my case I still have to change the name of a few dozens of variables, but this is say ten minutes work instead of an hour.
And your naming convention is a good suggestion too! Thanks!
- MathNotermans-92 months agoCommunity Member
As an extra for the naming convention i suggest using _num, _str and is in the variables. As that in 1 view makes clear whether a variable is supposed to be a number, a text or a boolean. This convention saved me hundreds of hours work...when a specific variable looses its value due to copy/paste or whatever causes it, its clear by name what it should be.
So some like: s1_titleStr, s1_titleNum eg.- JeroenVerhoeckx2 months agoCommunity Member
Thanks!!