% Default Town Scripts %
name <Town>
use <if= StatVal STAT_MetaVisibility 0 ifNoObjections EWM StatVal 4 ifFactionEnemy SceneFaction StatVal 4 else GoEnter Goto GoFight>
GoFight <ifG SkRoll 11 10 else GoNoSee ifYesNo 2 3 4 else GoStartCombat Reputation 3 -d3 ifG SkRoll 25 10 else GoStealthFail Print 5 Exit StatVal 4>
GoNoSee <Alert 1 Goto GoStartCombat>
GoStealthFail <Print 6 Goto GoStartCombat>
GoStartCombat <SavePos Dynamic 2 Threat PCRep 6 120 .nu1 .nu2 PassVar 1 StatVal 4 PassVar 2 SceneID>
.nu1 <if= T1 0 Return>
.nu2 <if= T2 0 if# V1 0 Exit V1 SeekGate V2 V= 1 0>
GoEnter <Exit StatVal 4>
roguechar <*>
SDL_Sprite <meta_terrain.bmp>
Msg1 <While entering \SCENE StatVal 4 , you are attacked by the town's defenders!>
Msg2 <While entering \SCENE StatVal 4 , you are confronted by the town's defenders.>
Msg3 <Try to sneak around them.>
Msg4 <Attack!>
Msg5 <You evade the guards and slip into town.>
Msg6 <You fail to evade the guards, and will now have to defend yourself...>
