Global variable text replacement in message box

Post » Mon Nov 19, 2012 8:44 am

So, I'm making a mod where player can use a spell which shows a message box with a text and few choice options. I would like to show something like this: "you should do things to get next rank" in that text.

Now, the main thing: I've created MyGlobalNextRank, a message and a quest, put MyGlobalNextRank in this quest's "text display globals" table, and when spell is cast, its magic effect script calls a function "ShowMyGlobalMessage", i.e. (MyQuest as MyQuestScript).ShowMyGlobalMessage(), that has messagechoice = mymessage.show() and some if (messagechoice == n), n=0,1,2,...

So I think I've done all of this right. But there is still "you should do things to get next rank", instead of, for example, "you should do 10 things to get next rank"

Does anybody know what should I do to get it work?

P.S. I've searched this forum's threads (like http://www.gamesas.com/topic/1354224-text-replacement-help/), but they are about dialogs and books, which I don't need. I need to simply show it in a message box.
User avatar
Kaylee Campbell
 
Posts: 3463
Joined: Mon Mar 05, 2007 11:17 am

Post » Mon Nov 19, 2012 7:55 am

On the Message, did you set the Owner Quest to your quest?
User avatar
GEo LIme
 
Posts: 3304
Joined: Wed Oct 03, 2007 7:18 pm

Post » Mon Nov 19, 2012 7:25 am

Lol, I forgot to set the Owner Quest, thank you very much, now it works! =)
User avatar
Margarita Diaz
 
Posts: 3511
Joined: Sun Aug 12, 2007 2:01 pm


Return to V - Skyrim