Extending a script?

Post » Tue Aug 20, 2013 6:51 pm

Is it possible to point, from a basically empty script, to use another script under certain circumstances?

For instance:

Scriptname Blahblahblah extends Quest  ConditionalScript1script Property Script1  Auto Script1script Property Script2  Autoevent OnInit() if (condition)   use functions and properties from Script1 else   use functions and properties from Script2 endIfendEvent
User avatar
..xX Vin Xx..
 
Posts: 3531
Joined: Sun Jun 18, 2006 6:33 pm

Post » Wed Aug 21, 2013 1:37 am

NEI <-opposite of TMI => Not Enough information

I don't understand why you can't link both scripts then use your conditions to determine which functions/properties to use? For that matter, why can't you put all the functions/properties in one script and use conditions to determine which functions/properties to use? If you were a bit more descriptive about what you were ultimately trying to accomplish, it would help the community help you.

But to answer your question as it stands... No.

User avatar
Calum Campbell
 
Posts: 3574
Joined: Tue Jul 10, 2007 7:55 am

Post » Wed Aug 21, 2013 12:23 am

That's not correct! Look at this example:

Scriptname myscript extends ObjectReferenceActor Property myActor AutoEvent OnInit()    myActor.EvaluatePackage()EndEvent

That's a code sample, we use all day long. Actor is a script that extends ObjectReference. If the properties are properly filled, you can use all the functions/properties declared in this script.

-docblacky

User avatar
Emily Graham
 
Posts: 3447
Joined: Sat Jul 22, 2006 11:34 am


Return to V - Skyrim