Jump to content

Possible to reference a variable in a MessageBox?


Leemonski

Recommended Posts

I'm using a vairable in a mod that increases by 1 to infinity each time a certain action is performed. But I need a way for the player to keep a track of this. Could a MessageBox reference the variable so it always tells the correct amount?

 

I'd rather not make my mod OBSE dependent if possible.

 

If I can't do it with a MessageBox, is there any other way I could achieve something similar?

Link to comment
Share on other sites

Why not?

I'd use Message instead, that's a bit cleaner.

but it works exactly the same way as with messageboxes. You put in the notation and add the variable afterwards.

Ok it's not working for me. This is what I used.

 

MessageBox "Variable is set at MyQuest.v" It should display the message Variable is set at 1 (or what ever value the variable v is set at) but it displays the text instead.

Link to comment
Share on other sites

Why not?

I'd use Message instead, that's a bit cleaner.

but it works exactly the same way as with messageboxes. You put in the notation and add the variable afterwards.

Ok it's not working for me. This is what I used.

 

MessageBox "Variable is set at MyQuest.v" It should display the message Variable is set at 1 (or what ever value the variable v is set at) but it displays the text instead.

use

messagebox "Variable = %g" "myquest.v"

instead.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...