Willy4x4 Posted January 22, 2013 Share Posted January 22, 2013 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 More sharing options...
LukeH Posted January 22, 2013 Share Posted January 22, 2013 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. Link to comment Share on other sites More sharing options...
Willy4x4 Posted January 22, 2013 Author Share Posted January 22, 2013 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 More sharing options...
cscottydont Posted January 22, 2013 Share Posted January 22, 2013 text replacement looks like it will be slightly more complicated if its book you mean to open multiple times Link to comment Share on other sites More sharing options...
LukeH Posted January 24, 2013 Share Posted January 24, 2013 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 More sharing options...
Recommended Posts