Jump to content

Quest Script only running once...?


puddles

Recommended Posts

So, I'm having a bizarre issue issue where a quest script in a mod I'm working on only fires off once. I setup printc to display a "Quest Active" at the start of each run of the script, and it just...only does it once. Anyone had similar issues before?

Link to comment

Yes:

Quest priority too low. So the game seems to never check the script.

 

And I had the problem when there was no Quest stage in the script.

--------------------------

scn  name

 

short  Huhu

 

begin gamemode

 

If huhu >= 1

    Player.additem xxyyyyyy 1

endif

end

--------------------

That did not work, or run only once or only when I save the game, quit and start the game again.

 

 

But

-----------

scn  name

 

short  Huhu

 

begin gamemode

 

If GetStage QuestID >= 5

    If huhu >= 1

            Player.additem xxyyyyyy 1

     endif

endif

end

 

----------------

That worked

-----------------------------

 

But I think both problems only happen with a game with many scripts.

 

 

Link to comment
2 hours ago, puddles said:

So, I'm having a bizarre issue issue where a quest script in a mod I'm working on only fires off once. I setup printc to display a "Quest Active" at the start of each run of the script, and it just...only does it once. Anyone had similar issues before?

It is not clear what you are doing (what kind of script?)

For the speed of the script (only in the quest) is responsible variable - fQuestDelayTime

==================

float fQuestDelayTime

==================

The smaller the number, the faster it works,order of numbers: 0.001 =1/1000 sec

 

example

if fQuestDelayTime !=0.001

    set fQuestDelayTime to 0.001 - very fast

endif

*************************************************

Doing something very fast

*************************************************

if fQuestDelayTime !=0

    set fQuestDelayTime to 0 - very slow

endif

*************************************************

To do at normal speed (control conditions to run fast speed)

*************************************************

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use