Jump to content

Variables in Books


Willy4x4

Recommended Posts

Hi everyone,

 

I need some help please, I know of the GetCrimeGold() function in Scripting papyrus,

But I'd like to display it in a book not in a MessageBox or Notification, How can I do this?

Link to comment
Share on other sites

You should put the value that function returns in a global (unless there's one already managed by vanilla) and use text replacement with that global.

 

How does text replacement with a global work please?

Link to comment
Share on other sites

How does text replacement with a global work please?

Check the link. You have to use <Global=....>

Now, thinking of the fact you need it on books, which you close and open again, I don't know for sure if you need to call UpdateCurrentInstanceGlobal from a quest which also would need the globals declared, nor even if that would work (but hopefully does). If it won't work, you have to workaround it by opening a new instance of the book every time you open the book in the inventory...but check it out first before overthinking this.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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