How should I structure this Script?

Post » Mon Jun 18, 2012 2:46 pm

Setup: script is attached to a quest that is "start Enabled" and "Run Once" (so its always running)


In the example below:
1) I don't want X and Y to be set back to 0 when a game is loaded, so should/can they be placed in OnInit ?

2) Can X and Y be shared between events and OnUpdate like in the code below, or what do i need to do to allow it?


A simplified example of what I want to do:

Scriptname myScript extends Questint  Xint  YOnInit   Register for Update(1)OnEvent 1   modify XOnEvent 2   modify YOnUpdate	 track, use, and modify X	 track, use, and modify Y  
User avatar
Jessica White
 
Posts: 3419
Joined: Sun Aug 20, 2006 5:03 am

Return to V - Skyrim