Scriptname MS05Script
short EscortPlayer
short MoreTalking
short ElementADoOnce
short ElementBDoOnce
short ElementCDoOnce
short ElementDDoOnce
short FoundElement
short Minotaur
short Talk
float fQuestDelayTime
begin gamemode
;Quest Killer
if GetStage MS05 < 10
Return
endif
;This is the script for finding the Dream Elements
if ( Player.GetItemCount MS05DreamElementA == 1 ) && ( ElementADoOnce == 0 )
set FoundElement to ( FoundElement + 1 )
set ElementADoOnce to 1
endif
if ( Player.GetItemCount MS05DreamElementB == 1 ) && ( ElementBDoOnce == 0 )
set FoundElement to ( FoundElement + 1 )
set ElementBDoOnce to 1
endif
if ( Player.GetItemCount MS05DreamElementC == 1 ) && ( ElementCDoOnce == 0 )
set FoundElement to ( FoundElement + 1 )
set ElementCDoOnce to 1
endif
if ( Player.GetItemCount MS05DreamElementD == 1 ) && ( ElementDDoOnce == 0 )
set FoundElement to ( FoundElement + 1 )
set ElementDDoOnce to 1
endif
if ( FoundElement < 5 )
if ( FoundElement == 1 )
SetStage MS05 70
endif
if ( FoundElement == 2 )
SetStage MS05 72
endif
if ( FoundElement == 3 )
SetStage MS05 74
endif
if ( FoundElement == 4 )
Set FoundElement to 5
SetStage MS05 75
set fQuestDelayTime to 0
endif
endif
end |