Jump to content

Papyrus: Attempting to advance a quest stage via counter


Recommended Posts

Posted

Hi guys,

 

I am attempting to run a function every 30 seconds that will monitor a counter. I want to write the function something simple like this:

 

Function Advancer()

If (Myquest.GetStage <= 40) && (specific_counter == <insert code for a number greater than previous check>)

Myquest.SetStage += 1

endif

endevent

 

I am not sure if its possible to check if the integer counter has advanced? How could i write this?

Posted

If by check you mean a debug message then something like:

Debug.Notification("Stage is: " + Myquest.GetStage())

 

Also SetStage is a function, not a property so your line has to be something like:

Myquest.SetStage(Myquest.GetStage() + 1)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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