- Joined
- Jun 18, 2010
- Messages
- 33
Hi, when im trying to save my map, it says that there's an error (Compile Error) in the line:
(Im using NewGen Jass Pack)
Could someone help me with this. Helper will gain some +rep.
In GUI the trigger looks like this:
(Im using NewGen Jass Pack)
Could someone help me with this. Helper will gain some +rep.
JASS:
function Trig_GenerateSafePoint_Actions takes nothing returns nothing
set udg_Point[udg_IntegerTemp[0]]=PolarProjectionBJ(udg_Point[0] , udg_TempPolarReal[0] , udg_TempPolarReal[1])
if ( Trig_GenerateSafePoint_Func003C() ) then
else
set udg_Point[udg_IntegerTemp[0]]=PolarProjectionBJ(udg_Point[0] , ( udg_TempPolarReal[0] + 100.00 ) , udg_TempPolarReal[1])
if ( Trig_GenerateSafePoint_Func003Func002C() ) then
else
set udg_Point[udg_IntegerTemp[0]]=PolarProjectionBJ(udg_Point[0] , ( udg_TempPolarReal[0] + 300.00 ) , GetRandomDirectionDeg())
if ( Trig_GenerateSafePoint_Func003Func002Func002C() ) then
else
call DisplayTimedTextToForce(udg_PlayerGroup , 7.00 , "TRIGSTR_549")
endif
>>>> call RemoveLocation(udg_Point[IntegerTemp[0]])
endif
call RemoveLocation(udg_Point[IntegerTemp[0]])
endif
call RemoveLocation(udg_Point[IntegerTemp[0]])
endfunction
//===========================================================================
function InitTrig_GenerateSafePoint takes nothing returns nothing
set gg_trg_GenerateSafePoint = CreateTrigger()
call TriggerAddCondition(gg_trg_GenerateSafePoint , Condition(function Trig_GenerateSafePoint_Conditions))
call TriggerAddAction(gg_trg_GenerateSafePoint , function Trig_GenerateSafePoint_Actions)
endfunction
In GUI the trigger looks like this:
-
GenerateSafePoint
-

Events
-

Conditions
-


CinematicOn Not equal to True
-
-

Actions
-


Set Point[IntegerTemp[0]] = (Point[0] offset by TempPolarReal[0] towards TempPolarReal[1] degrees)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Terrain cliff level at Point[IntegerTemp[0]]) Equal to (Terrain cliff level at Point[0])
-




(Terrain pathing at Point[IntegerTemp[0]] of type Walkability is off) Not equal to True
-
-



Then - Actions
-



Else - Actions
-




Set Point[IntegerTemp[0]] = (Point[0] offset by (TempPolarReal[0] + 100.00) towards TempPolarReal[1] degrees)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Terrain cliff level at Point[IntegerTemp[0]]) Equal to (Terrain cliff level at Point[0])
-






(Terrain pathing at Point[IntegerTemp[0]] of type Walkability is off) Not equal to True
-
-





Then - Actions
-





Else - Actions
-






Set Point[IntegerTemp[0]] = (Point[0] offset by (TempPolarReal[0] + 300.00) towards (Random angle) degrees)
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Terrain cliff level at Point[IntegerTemp[0]]) Equal to (Terrain cliff level at Point[0])
-








(Terrain pathing at Point[IntegerTemp[0]] of type Walkability is off) Not equal to True
-
-







Then - Actions
-







Else - Actions
-








Game - Display to PlayerGroup for 7.00 seconds the text: |CFFFFCC00Error: A ...
-
-
-






Custom script: call RemoveLocation( udg_Point[IntegerTemp[0]] ) <<<<<<<<<<<<<<<<<<<
-
-
-




Custom script: call RemoveLocation( udg_Point[IntegerTemp[0]] )
-
-
-


Custom script: call RemoveLocation( udg_Point[IntegerTemp[0]] )
-
-
Last edited:






