Been trying to figure out how to set the flag for Khelgar finishing his vision quest. I have completed all 3 and gotten confirmation on each one from Hilam. However I am given no option to convert Khelgar and if I sepnd some time away from the temple I can return and turn in Justice again for more exp.
I have tried dm_setvarint and dm_getvarint in the console and both seem to be pointless in finding out the variable values or setting them properly.
Looking inside Hilams conversation file I find 10_khelgar_main, 10_khelgar_maim as well as gc_global_int("10_nkhelgarvqstate...)
I am however unable to figure out a way to froce set these values.
I can run the script and force khelgar to become a monk but then I miss all the dialog that comes with the conversation.
how do I go about setting the khelgar vision quest to complete so that Hilam will give me the option to convert Khelgar?
any help would be greatly appreciated.
Khelgar Vision Quest Script
Débuté par
sapientCrow
, nov. 03 2013 07:58
#1
Posté 03 novembre 2013 - 07:58
#2
Posté 03 novembre 2013 - 01:46
I've got my head buried in other code right now & then i'll be crashing.....
but if you look carefully at Hlam's conversation, and find the base-node you're looking to trigger, see the Conditions column and jot those conditions down. you'll likely use stock scripts like "ga_local_int" and/or "ga_global_int" to set variables (rather than the internal console commands)
"ga_journal" may come in handy also
but if you look carefully at Hlam's conversation, and find the base-node you're looking to trigger, see the Conditions column and jot those conditions down. you'll likely use stock scripts like "ga_local_int" and/or "ga_global_int" to set variables (rather than the internal console commands)
"ga_journal" may come in handy also
#3
Posté 03 novembre 2013 - 02:19
ahh ok great thank you.
So the conditions for each are:
gc_global_int("nkhelgarmaim","1") which also sets quest 10_khlegar_maim (30) //trial maimed
gc_global_int("nkhelgareven","1") which also sets quest 10_khlegar_even (20) //trial even handed
gc_global_int("nkhelgarjustice","1") which also sets quest 10_khlegar_justice (30) //trial justice
the entire vision quest state is
gc_global_int("10_nkhelgarvqstate","3") //this occurs after all three are complete.
what is the command to set them and to simply view what their values are as of now?
So the conditions for each are:
gc_global_int("nkhelgarmaim","1") which also sets quest 10_khlegar_maim (30) //trial maimed
gc_global_int("nkhelgareven","1") which also sets quest 10_khlegar_even (20) //trial even handed
gc_global_int("nkhelgarjustice","1") which also sets quest 10_khlegar_justice (30) //trial justice
the entire vision quest state is
gc_global_int("10_nkhelgarvqstate","3") //this occurs after all three are complete.
what is the command to set them and to simply view what their values are as of now?
Modifié par sapientCrow, 03 novembre 2013 - 02:25 .
#4
Posté 03 novembre 2013 - 06:24
If a script starts with "gc", it checks. If it's "ga" it acts. The script to set the global variable is similarly named as the conditional conversation script that checks the global int (the one you listed), and it's called "ga_global_int". The syntax for that script is exactly the same as the one that checks it, so the first one would be ga_global_int("nkhelgarmaim","1").
To run a script like this in the console, you type "runscript [script name]", or simply "rs [script name]" for short. So, the first command you'd enter in the console (after activating debug mode) would be:
rs ga_global_int("nkhelgarmaim","1")
I don't know the method and syntax offhand for checking what the current value of the int is. I'd probably write my own script to do it.
To run a script like this in the console, you type "runscript [script name]", or simply "rs [script name]" for short. So, the first command you'd enter in the console (after activating debug mode) would be:
rs ga_global_int("nkhelgarmaim","1")
I don't know the method and syntax offhand for checking what the current value of the int is. I'd probably write my own script to do it.
#5
Posté 03 novembre 2013 - 06:34
alright cool thank you.
so looking at your input on printing to screen in the forums if I wanted to create a print to chat script would I simply use sendmessagetoPC() or setNoticeText() if I wanted it on top and not in chat.
I would like to figure out the values myself so I know why they break and where they break or do not update or move forward in their values. I have a couple of quests that are like that in my journal that never updated and were never able to be removed because their variables did not get set right.
so looking at your input on printing to screen in the forums if I wanted to create a print to chat script would I simply use sendmessagetoPC() or setNoticeText() if I wanted it on top and not in chat.
I would like to figure out the values myself so I know why they break and where they break or do not update or move forward in their values. I have a couple of quests that are like that in my journal that never updated and were never able to be removed because their variables did not get set right.
#6
Posté 03 novembre 2013 - 09:07
Yes, you could write a ga_ script that looks something like
and run it using
rs ga_my_check_global("nkhelgarmaim")
// Script name: ga_my_check_global
void main(string sCheckGlobal)
{
SendMessageToPC(GetFirstPC(FALSE), "Int: "+IntToString(GetGlobalInt(sCheckGlobal)));
}and run it using
rs ga_my_check_global("nkhelgarmaim")
#7
Posté 03 novembre 2013 - 09:53
Another way to check what a global value is, is look in your savegame folder for file 'globals.xml' -- those are all the globals that have been set.
plus here's a script for local variables (i had fun..):
Pastebin getvars
[edit] updated.
[edit2] updated.
[edit3] 3rd time pays for all, right?
plus here's a script for local variables (i had fun..):
Pastebin getvars
[edit] updated.
[edit2] updated.
[edit3] 3rd time pays for all, right?
Modifié par kevL, 03 novembre 2013 - 10:22 .
#8
Posté 03 novembre 2013 - 10:42
awesome and thanks thanks
now I can print all the variables and see what the hell is going on.
appreciate the help Tchos and kevL!
now I can print all the variables and see what the hell is going on.
appreciate the help Tchos and kevL!





Retour en haut






