SCTX |
ScriptName SavlianMatiusScript
short sayorder
short atplazamark
short plazaconv
float timer
float convtimer
begin OnLoad
setignorefriendlyhits 1
end
begin OnPackageDone MS48SavlianMatiusToKvatchPlaza
setstage MS48 65
end
begin OnPackageDone MS49SavlianTravelto1stMark
setav aggression 0
end
Begin Gamemode
;When Savlian and player are both inside the chapel, Savlian starts conversation w/Tierra
if ( GetStage MS48 == 90 )
if ( GetInCell KvatchChapelofAkatosh == 1 ) && ( Player.GetInCell KvatchChapelofAkatosh == 1 )
if ( MS48.conv == 0 )
TierraRef.SetAlert 0
StartConversation TierraRef MS48Convo
endif
endif
endif
;When this conversation is finished, further conversation and AI packages trigged by script MS48CivilianFollowScript on NPC Tierra
;If conversation is interrupted, SavlianMatius script will make sure that variable "conv" updates so action can proceed.
if ( GetStage MS49 >= 20 )
if ( GetStage MS49 < 40 )
if ( GetDistance MS49Savlian1stMark < 200 )
if ( atplazamark == 0 )
set atplazamark to 1
endif
elseif ( GetDistance MS49Savlian1stMark > 200 )
if ( atplazamark == 1 )
set atplazamark to 0
endif
endif
endif
endif
if ( atplazamark == 1 )
if ( plazaconv == 0 )
if ( GetDistance Player < 300 )
startconversation player
set plazaconv to 1
endif
endif
endif
End
|