How to set new Global variable in DLTCEP?
gattberserk
Member Posts: 191
I tried to create and set a new global variable but it doesnt seem to work when I tried them under dialogue files
Any idea?
For eg this is one of the global variable inside:
SetGlobal("bd_205_forge_carapace","global",1)
I try to add a new variable:
SetGlobal("bd_205_forge_combatsh","global",1)
But it doesnt seem to work? The dialogue cannot progress when the condition which requires:
Global("bd_205_forge_combatsh","global",1)
doesnt trigger.
Any idea?
For eg this is one of the global variable inside:
SetGlobal("bd_205_forge_carapace","global",1)
I try to add a new variable:
SetGlobal("bd_205_forge_combatsh","global",1)
But it doesnt seem to work? The dialogue cannot progress when the condition which requires:
Global("bd_205_forge_combatsh","global",1)
doesnt trigger.
0
Comments
I always capitalize the "global" denoting variable type. i.e.
Global("bd_205_forge_combatsh","GLOBAL",1)
as all the examples I've seen do so. I vaguely remember reading somewhere that capitalization can be important, though i don't remember the context.
...Maybe your variable name it too long?
Edit: it might help to see the whole block