How to get quest Int variable as condition for package?

Post » Wed Jun 20, 2012 2:39 am

So I have declared an Int variable in my quest script, and I need it to be the condition on a couple of packages but I can't seem to figure this out. The only two things I can find that are relevant conditions are 'GetScriptVariable' but that wants a reference, or 'GetQuestVariable' but when I select my quest it gives me no options to choose from.

What am I missing here?

Thanks,
Alexander J. Velicky
User avatar
Nicole Coucopoulos
 
Posts: 3484
Joined: Fri Feb 23, 2007 4:09 am

Post » Wed Jun 20, 2012 2:14 pm

You need both your script and your variable to have the http://www.creationkit.com/Flag_Reference flag, then I expect you'd probably want to use http://www.creationkit.com/GetScriptVariable.

Cipscis
User avatar
Chloe Botham
 
Posts: 3537
Joined: Wed Aug 30, 2006 12:11 am

Post » Wed Jun 20, 2012 12:52 pm

You need both your script and your variable to have the http://www.creationkit.com/Flag_Reference flag, then I expect you'd probably want to use http://www.creationkit.com/GetScriptVariable.

Cipscis
Alright. And, uhh, how exactly do I add the conditional flag? :happy:
User avatar
Gracie Dugdale
 
Posts: 3397
Joined: Wed Jun 14, 2006 11:02 pm

Post » Wed Jun 20, 2012 9:46 am

AJV - A variable or a property? I'm using properties/functions in a quest script for that and my condition is under GetQMQuestVariable.
User avatar
Sara Lee
 
Posts: 3448
Joined: Mon Sep 25, 2006 1:40 pm

Post » Wed Jun 20, 2012 5:44 am

Ah, I should add links to that page to the other relevant reference pages. I'll do that in a sec...

Basically just add it after the rest of the variable declaration, on the same line (http://www.creationkit.com/Variable_Reference). For example:
int foo = 3 Conditional

Cipscis
User avatar
Robyn Lena
 
Posts: 3338
Joined: Mon Jan 01, 2007 6:17 am

Post » Wed Jun 20, 2012 10:31 am

AJV - A variable or a property? I'm using properties/functions in a quest script for that and my condition is under GetQMQuestVariable.
Oh well, it's a property. Is that different than a variable? (A value?) :blush: Should I declare it as a variable instead? Also, would that affect other uses of it? I'm currently using the same property in another script. When my bandits die, it uses MyScriptName Property MyQuestName Auto to access the script and alter the property. Would that all work just the same if I made it a variable instead?
User avatar
Sylvia Luciani
 
Posts: 3380
Joined: Sun Feb 11, 2007 2:31 am

Post » Wed Jun 20, 2012 9:56 am

Oh well, it's a property. Is that different than a variable? (A value?) :blush: Should I declare it as a variable instead? Also, would that affect other uses of it? I'm currently using the same property in another script. When my bandits die, it uses MyScriptName Property MyQuestName Auto to access the script and alter the property. Would that all work just the same if I made it a variable instead?

Oh, ya, sorry, I'm still getting confused by the terminology. The property is absolutely serving the purpose that we used variables for in the Gecks . I have mine running the switching of my packages for my follower. When you set up the property as an Int, if your script is conditional, like Cipscis said, you'll be able to set up the property (which will work as a variable) as conditional by checking a little box right on that form. The box isn't available to you unless your script is set up to be conditional. Then, because it's conditional, you'll be able to find the condition under GetVMQuestVariable when you are doing packages and dialgoue.
User avatar
sophie
 
Posts: 3482
Joined: Fri Apr 20, 2007 7:31 pm

Post » Tue Jun 19, 2012 11:32 pm

Oh, ya, sorry, I'm still getting confused by the terminology. The property is absolutely serving the purpose that we used variables for in the Gecks . I have mine running the switching of my packages for my follower. When you set up the property as an Int, if your script is conditional, like Cipscis said, you'll be able to set up the property (which will work as a variable) as conditional by checking a little box right on that form. The box isn't available to you unless your script is set up to be conditional. Then, because it's conditional, you'll be able to find the condition under GetVMQuestVariable when you are doing packages and dialgoue.
Ah, righto. GetVMQuestVariable now see's my stuff.

Thank you both of you! I'm learning so much today. :D
User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm


Return to V - Skyrim