Jump to content

[LE] Scripting help with two issues.


Recommended Posts

First issue is likely going to need an ifelse, but those things are very confusing to me.

I have an actor who upon their death advances one quest, but that same person has their own quest where if they die it fails that quest.

Currently the actor has two scripts on then that read.

Event OnDeath (Actor killer)if (!SSIQ06.IsCompleted())
SSIQ06.SetStage(200)
Endif
EndEvent
And the other;
Event OnDeath (Actor killer)if (!SQ15.IsCompleted())
SQ15.SetStage(40)
Endif
EndEvent
For the one that is SetStage(40) the player can kill the actor before starting the quest. I want the quest to fail if the actor is killed too early, but also advance the stage at the proper time.
For my second question, I need to have a quest advance after 24 hours a number of times. I have read that this can be done with OnUpdate and a global variable but it isn't clicking for me. I basically want to do what is in this thread here: https://forums.nexusmods.com/index.php?/topic/6447826-24-hours-between-quest-stages/ but I am not sure on the step by step parts. If someone could explain it to me in greater detail while using examples I would be ever so grateful.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...