Dialogue variable issues

Post » Thu Jun 21, 2012 8:18 am

I made a global variable with a value of 15000 to be used in a quest dialogue, but it displays as ([...]). Why is this happening?

Topic Text: The Man Cave. ( gold)

Global variable:
Name: HDWhiterunTheManCave
Type: short
Value: 15000
User avatar
dav
 
Posts: 3338
Joined: Mon Jul 30, 2007 3:46 pm

Post » Thu Jun 21, 2012 2:55 pm

You have to put it in the Quest, in the Globals List on the First Quest Tab (Data, I think the tab is ... The one to the left of Stages) ... bottom right of form

Then it should be available to any dialogue in the quest (or any books and whatnot that are aliases of the quest)
User avatar
vanuza
 
Posts: 3522
Joined: Fri Sep 22, 2006 11:14 pm

Post » Thu Jun 21, 2012 9:21 am

I've already done that.
User avatar
Leah
 
Posts: 3358
Joined: Wed Nov 01, 2006 3:11 pm

Post » Thu Jun 21, 2012 2:36 am

When did you set the Global Value?

If you set the Global Value after the Quest started, then you have to call an Update Function, in your Quest, when you want to get at the new value.
  • Stuff on how to use Globals is here: http://www.creationkit.com/Text_Replacement
  • Stuff on how to update the Globals if the value changes after the quest has started, is here: http://www.creationkit.com/UpdateCurrentInstanceGlobal_-_Quest
User avatar
Noraima Vega
 
Posts: 3467
Joined: Wed Jun 06, 2007 7:28 am

Post » Thu Jun 21, 2012 6:56 am

I'm pretty sure I set the global value after the quest started. When you say to call the update function, do yiou mean in the console or in the creation kit? As for your link, I made the global myself, so it hasn't changed.

If you want to load up the CK and see for yourself, the global is in this mod: http://skyrim.nexusmods.com/downloads/file.php?id=10330
User avatar
Maria Leon
 
Posts: 3413
Joined: Tue Aug 14, 2007 12:39 am

Post » Thu Jun 21, 2012 12:31 pm

If you set it AFTER the quest has started. Then in a script attached to the Quest (or an Alias in that Quest, or whatever) you must run the UPDATE procedure.

If you want the Global to be in dialogue, then you could attach a script with the update-function to that dialogue - in a topic/info BEFORE you need it - and then it should be all good when you do want it.

If the value can change as the quest progresses, you must call update before you need to use the value.

Therefore - It would make sense to ALWAYS call Update, right before you use the value, then you know you have the up to date version
User avatar
michael danso
 
Posts: 3492
Joined: Wed Jun 13, 2007 9:21 am

Post » Thu Jun 21, 2012 12:58 pm

What properties do I need for the script?
User avatar
Riky Carrasco
 
Posts: 3429
Joined: Tue Nov 06, 2007 12:17 am

Post » Thu Jun 21, 2012 9:55 am

Well, it depends exactly what you are doing ... but in its simplest form, just a Property for the Global that is in the List of Globals in your Quest

Have a look at the two links above ... If you are already amending the value of the Global in another bit of script, then all you are doing here is calling "update" on that Global (the second link in my post above).

If that isn't what you mean, post again ...
User avatar
Rob Smith
 
Posts: 3424
Joined: Wed Oct 03, 2007 5:30 pm


Return to V - Skyrim