Object Reference

Post » Wed Jun 20, 2012 5:27 pm

I'm working on a little personal project and i was wondering if it's possible; Like in Whiterun after the attack; to have an object appear, only if the civil war is won by either side.

Possibly tell the object not to appear unless Tullius or Ulfric is dead.

Is this possible and if so, how? :)
User avatar
CSar L
 
Posts: 3404
Joined: Fri Nov 09, 2007 9:36 pm

Post » Wed Jun 20, 2012 2:47 pm

You would just put a simple if statement on the object. You need to know the specific quest also.

Quest Property MyQuest AutoObject Reference Property MyObj AutoEvent SomeEvent()IF(MyQuest.GetStage() == 'Foo')MyObj.Disable()EndEvent

OR

Quest Property MyQuest AutoActor Property SomeActor AutoObject Reference Property MyObj AutoEvent SomeEvent()IF(SomeActor.IsDead())MyObj.Disable()EndEvent
User avatar
Sanctum
 
Posts: 3524
Joined: Sun Aug 20, 2006 8:29 am

Post » Wed Jun 20, 2012 12:17 pm

Ah i see, i'll see if i can figure it out, i only just started with some basic scripting ;)

Thanks for the help aWes0m3 :)
User avatar
Annika Marziniak
 
Posts: 3416
Joined: Wed Apr 18, 2007 6:22 am

Post » Wed Jun 20, 2012 4:00 pm

Alright, can't seem to wrap my head around it. (Although it's most likely very simple)

If i say; I should have the script mentioned above to evolve around the death of Tullius/Ulfric, in which part of the script would i define the actor?
User avatar
Jacob Phillips
 
Posts: 3430
Joined: Tue Aug 14, 2007 9:46 am

Post » Wed Jun 20, 2012 10:36 am

The property is what handles the actor. In the Editor, you have to click Edit Properties when you have the script selected. Once there, you will see your properties do not have a value assigned. You would fill your Actor property with the specific actor you want the script to perform the check on.

http://www.creationkit.com/Variables_and_Properties
User avatar
Kelsey Hall
 
Posts: 3355
Joined: Sat Dec 16, 2006 8:10 pm


Return to V - Skyrim