SM QuestionScripting Stuff

Post » Fri Aug 15, 2014 8:26 pm

Alright. Is there a better way to check for when the player has bought their first house or home than this:

Event OnInit()    RegisterForSingleUpdate(5.0)EndEventEvent OnUpdate()    If QueryStat("Houses Owned") > 0 || QueryStat("Horses Owned") > 0        ; do my other stuff    Else        RegisterForSingleUpdate(5.0)EndEvent 

For instance, is there a Story Manager event to start a quest once you've bought your first home or horse/once Houses Owned or Horses Owned is bigger than 0? Or is there some other way I don't know of, because the above seems like a very bad idea, even with single updates.

User avatar
Madison Poo
 
Posts: 3414
Joined: Wed Oct 24, 2007 9:09 pm

Post » Fri Aug 15, 2014 2:34 pm

http://www.creationkit.com/Story_Manager_Event

Maybe use the Change Location Event and use a bool condition when first visited?

Or maybe use http://www.creationkit.com/IsObjectiveCompleted_-_Quest to figure when the 'house' quest is finished. GetStage could be used as well, to get the stage of the house quests.

User avatar
jesse villaneda
 
Posts: 3359
Joined: Wed Aug 08, 2007 1:37 pm

Post » Fri Aug 15, 2014 8:21 am


But no events? I really don't want to poll for it since it could cause bloating and such.
User avatar
Invasion's
 
Posts: 3546
Joined: Fri Aug 18, 2006 6:09 pm


Return to V - Skyrim