Scriptname MyScriptName extends objectType CONDITIONAL

Post » Mon Jun 18, 2012 9:50 pm

Scriptname MyScriptName extends objectType CONDITIONAL
That is the above format for script types as I've noticed, but I still have no idea what condition does. I know that it's optional, but I do not understand why you would, or would not, wish to include that as part of your script declaration.

Just what the hell does it do? I can't find any information on the wiki about it.
User avatar
Bee Baby
 
Posts: 3450
Joined: Sun Jun 18, 2006 4:47 am

Post » Tue Jun 19, 2012 2:46 am

The "conditional" part from what I understand makes the script accessible from the conditions dialogue. It allows you to make anything with conditions look for specific conditions in your script. Applications in magic affects, quests, or anything else that requires conditions. I think.
User avatar
Ice Fire
 
Posts: 3394
Joined: Fri Nov 16, 2007 3:27 am

Post » Tue Jun 19, 2012 3:26 am

The "conditional" part from what I understand makes the script accessible from the conditions dialogue. It allows you to make anything with conditions look for specific conditions in your script. Applications in magic affects, quests, or anything else that requires conditions. I think.
Hmm. I think I kind of somewhat sorta not really get it. Anyone got any examples?
User avatar
Dalton Greynolds
 
Posts: 3476
Joined: Thu Oct 18, 2007 5:12 pm

Post » Mon Jun 18, 2012 4:57 pm

Bump.
User avatar
Sophh
 
Posts: 3381
Joined: Tue Aug 08, 2006 11:58 pm

Post » Tue Jun 19, 2012 3:16 am

Here's what the wiki currently has to say about the http://www.creationkit.com/Papyrus_Introduction#Writing_Custom_Functions.

Cipscis

EDIT:

Also this - http://www.creationkit.com/Flag_Reference

Cipscis
User avatar
mike
 
Posts: 3432
Joined: Fri Jul 27, 2007 6:51 pm

Post » Mon Jun 18, 2012 7:25 pm

The reason for this keyword is because objects can have multiple scripts, but conditions don't have a way to differentiate between different scripts on the same thing (quest, reference) - so any object can only have a single "Conditional" script on it, and this is what the conditions use to pull properties from when you use the GetVMQuestVariable (for checking quest script properties) or GetVMScriptVariable (for checking reference script properties) conditions.
User avatar
Katey Meyer
 
Posts: 3464
Joined: Sat Dec 30, 2006 10:14 pm

Post » Tue Jun 19, 2012 3:37 am

Ok I kind of get it then. Thanks for the responses.
User avatar
Sarah Evason
 
Posts: 3507
Joined: Mon Nov 13, 2006 10:47 pm


Return to V - Skyrim