Joined: Sat May 19, 2012 6:12 pm Posts: 108 Location: Holland, AKA The Netherlands
|
Well i've tried using B01 while setting B01 to the name "Cargo Area" but even then it just refused to work, and crashed whenever loaded. Used both Navigation Zones and Local Navigation Zones, with and without Information zones cooperaring with them, both covered and uncovered by bigger Navigation zones. It just flat out seems to refuse to work! Meh, maybe im missing something special the official maps use as zone structure... Oh well i'll throw in the checking script if it helps any bit. Already checked potential causes of crashing but it only did when zone checking was involved.
IF(Rn3_SpottedCircle = 5)
CLEAR_ALL_BRIEFS()
//In the circle: Surround intruder.
IF(IS_CHAR_IN_ZONE (Player1, B01 ))
//IF((LOCATE_CHARACTER_ANY_MEANS(Player1, 227.5, 243.5, 4.0, 4.0, 3.0)) OR (LOCATE_CHARACTER_ANY_MEANS(Player1, 227.5, 243.5, 5.0, 4.0, 3.0)) )
//IF(LOCATE_CHARACTER_ANY_MEANS(Player1, 227.2, 243.2, 4.0, 4.0, 3.0))
SET Rn3_SpottedCircle = 1
DISPLAY_BRIEF_NOW(1081)//n!Intruder at the cargo area! Get into positions and send reinforcements!
SET Rn3_Countdown = 600//20 sec.
SET Rn3_CounterSetting = 1
SET_CHAR_OBJECTIVE(Rn3_Guard5, GOTO_AREA_ON_FOOT, 226.5, 242.5, 4.0)//Top-left
SET_CHAR_OBJECTIVE(Rn3_Guard6, GOTO_AREA_ON_FOOT, 231.5, 243.5, 4.0)//Top-Right
SET_CHAR_OBJECTIVE(Rn3_Guard7, GOTO_AREA_ON_FOOT, 228.5, 246.5, 4.0)//Bottom-Left
SET_CHAR_OBJECTIVE(Rn3_Guard8, GOTO_AREA_ON_FOOT, 231.5, 245.5, 4.0)//Bottom-Right
//ENDIF
ENDIF
//At circle entrance: Block entry.
IF(NOT(Rn3_SpottedCircle = 1))
IF((LOCATE_CHARACTER_ANY_MEANS(Player1, 233.5, 244.5, 3.0, 3.0, 3.0)) OR (LOCATE_CHARACTER_ANY_MEANS(Player1, 233.5, 244.5, 4.0, 3.0, 3.0)))
SET Rn3_SpottedCircle = 2
DISPLAY_BRIEF_NOW(1082)//n!Intruder spotted! Dont let him through!
MAKE_CHAR_DO_NOTHING(Rn3_Guard5 )
MAKE_CHAR_DO_NOTHING(Rn3_Guard6 )
MAKE_CHAR_DO_NOTHING(Rn3_Guard7 )
MAKE_CHAR_DO_NOTHING(Rn3_Guard8 )
SET_CHAR_OBJECTIVE(Rn3_Guard5, GOTO_AREA_ON_FOOT, 231.5, 244.5, 4.0)//Entrance
SET_CHAR_OBJECTIVE(Rn3_Guard6, GOTO_AREA_ON_FOOT, 231.5, 245.5, 4.0)//Same
SET_CHAR_OBJECTIVE(Rn3_Guard7, GOTO_AREA_ON_FOOT, 231.5, 246.5, 4.0)//Also
SET_CHAR_OBJECTIVE(Rn3_Guard8, GOTO_AREA_ON_FOOT, 228.5, 242.5, 4.0)//Guarding upper-exit path.
ENDIF
ENDIF
//If at neither location.
IF(NOT(Rn3_SpottedCircle = 1))
IF(NOT(Rn3_SpottedCircle = 2))
IF(NOT(LOCATE_CHARACTER_ANY_MEANS(Player1, 233.5, 244.5, 3.0, 3.0, 3.0)))
IF(NOT(LOCATE_CHARACTER_ANY_MEANS(Player1, 233.5, 244.5, 4.0, 3.0, 3.0)))
IF(NOT(LOCATE_CHARACTER_ANY_MEANS(Player1, 227.5, 243.5, 4.0, 4.0, 3.0)))
IF(NOT(LOCATE_CHARACTER_ANY_MEANS(Player1, 227.5, 243.5, 5.0, 4.0, 3.0)))
SET Rn3_SpottedCircle = 3
DISPLAY_BRIEF_NOW(1083)//n!Intruder in the area! Get him!
SET_CHAR_OBJECTIVE(Rn3_Guard5, KILL_CHAR_ON_FOOT, Player1 )
SET_CHAR_OBJECTIVE(Rn3_Guard6, KILL_CHAR_ON_FOOT, Player1 )
SET_CHAR_OBJECTIVE(Rn3_Guard7, KILL_CHAR_ON_FOOT, Player1 )
SET_CHAR_OBJECTIVE(Rn3_Guard8, KILL_CHAR_ON_FOOT, Player1 )
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
//---------------
//ENDIF
ENDIFParsed in 0.032 seconds, using GeSHi 1.0.8.10
If that doesnt work i wonder whats the secret to more accurate large-scale LOCATE_CHARACTER checking... Might as well mess with that some more in the meanwhile. Edit: I've tried various names, Cargo_Area, cargoarea, Cargo. And Cargo uses the same amount of letters as Slums, the only working zone check i have in the whole damn map! Though that zone doesnt use a gtx file for name referencing.
|
|