Jump to content

[LE] Changing Global Variable Text Replacement Problem


Recommended Posts

I am making mod about more hirelings. And I wanted to adjust prices based on level of hirelings. By using topic info scripts I put a calculations that affects global variable. This topic is all about asking the cost of hireling. Then I am offering two options:

 

You are hired!(<Global=MyGlobalVariable> Gold)

or

Sorry I have to go.

 

Whenever I asked the cost, it displays 300(which is I set it myself), but it takes the right amount.

 

Any idea?

 

Thanks...

Edited by OperatiC
Link to comment
Share on other sites

2. I used it in my topic info script but it said "UpdateCurrentInstanceGlobal is not a function or does not exist"

Yep, UpdateCurrentInstanceGlobal needs to be called on a quest or from a quest script.

 

GetOwningQuest().UpdateCurrentInstanceGlobal(MyGlobalVar)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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