scn MQ12Script
short gotStone ; set to 1 when player gets Great Welkynd Stone (in case they get it before this quest starts)
short convStage ; used to track progress of Jauffre/Martin exchange
float timer ; used for Jauffre/Martin "hellos"
float fQuestDelayTime
short placeStone ; set to 1 when Martin has placed stone
begin gamemode
if getstage MQ12 == 10
if player.getincell Miscarcand01 == 1
setstage MQ12 20
endif
endif
if getstage MQ12 == 30
if getstagedone MQ12 25 == 0
if player.getincell CloudRulerTempleGreatHall
setstage MQ12 25
endif
endif
endif
if convstage >=6 && getstagedone MQ12 27 == 0
if timer > 0
set timer to timer - getsecondspassed
elseif MartinRef.getdistance player < 600
if convStage == 6
set timer to MartinRef.sayto player MQ12Talk
elseif convStage == 7
set timer to JauffreRef.sayto player MQ12Talk
setstage MQ12 27
endif
endif
endif
end |