checking lvars en mvars

Guiseppe

First time out of the vault
Is there a way to check lvars and mvars ingame?

I made a whole new map, and there are two npc's on it, both have a new script.

when I talk to npc 1 the mvar becomes 1
when I talk to npc 2 I get different dialoges depending on the mvar, 0 or 1.

But for some reason it doesnt work, so I'd like to check the mvar, to see if it changes at all.

(I put the define mvar in a header, and yes I linked to the header in my script)
 
You could download the patcher to enable debug messages, and then write in a few debug messages to display the values in the debug window. Or, if you don't feel like downloading anything, just write in the messages to display the variables with display_msg instead of debug_msg, and they'll always be displayed in the little window in the lower left corner of the screen, and you can delete them (or comment them out) when you're done.
 
See map_var, local_var and set_map_var, set_local_var. You need to update a couple of files to use variables, see the link in my sig, and go to the scripting tutorial, section bits and pieces.
 
I got the same problem, i defined some mvar and lvar in new scripts (the mvar is defined in the header and i inckude it in my scripts) and when i make tests the game doesn't care about it. even if i try to change the values.

Edit : in fact i noticed that the game doesn't care about any local var even LVAR_Herebefore or LVAR_Looked_before.
May someone help me?
 
Back
Top