Talk:Quest Stages Tab

From GECK
Jump to: navigation, search

I ran a quick test on the order that quest item scripts are evaluated. I created a new quest with the following script:

scn testquestscript

short myvar

begin gamemode
  setstage testquest 10
end

I then made a number of quest stage items with the following scripts

Topmost Quest Stage Item

set testquest.myvar to 10

Bottommost Quest Stage Item

if testquest.myvar == 0
  set testquest.myvar to 15
else
  set testquest.myvar to 20
endif

After this script runs in game i ran an ShowQuestVars command.

testquest.myvar was set to 20

This implies that the quest stage item result scripts are executed top to bottom however i'm not willing to say a single test is sufficient to add it to the page.

--Smokingrope 6 January 2009