i need help with this line of jass

Z

zesoccerking

Guest
i ahve no clue whats wrong with i but it keeps coming up with as an error

expceted 'endiff'

Custom script: call DestroyGroup(GetLastCreatedGroup()) :nuts:
 

SFilip

Gone but not forgotten
Reaction score
634
entire trigger pls...its probably not that action but something above/below it.
 

C-Death

I love you
Reaction score
45
Yea dude, we need the entire trigger.
 
Z

zesoccerking

Guest
ok!!1 sec

1 sec
is that it?

//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************

globals
// User-defined
group udg_Heroes = null
force udg_Players = null
location udg_Point = null
location udg_Position = null
force udg_SlidePlayers = null
group udg_SlideUnits = null
location udg_marble_point = null

// Generated
trigger gg_trg_Melee_Initialization_Copy = null
trigger gg_trg_Slide = null
trigger gg_trg_Slide_Turn = null
trigger gg_trg_revive_Copy = null
rect gg_rct_team_2 = null
trigger gg_trg_Untitled_Trigger_001 = null
trigger gg_trg_Untitled_Trigger_002 = null
unit gg_unit_hsor_0003 = null
endglobals

function InitGlobals takes nothing returns nothing
set udg_Heroes = CreateGroup()
set udg_Players = CreateForce()
set udg_SlidePlayers = CreateForce()
set udg_SlideUnits = CreateGroup()
endfunction

function Trig_Untitled_Trigger_001_Func001C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(GetUnitLoc(GetEnumUnit())) == 'Bdsr' ) ) then
return false
endif
return true
endfunction

function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
if ( Trig_Untitled_Trigger_001_Func001C() ) then
call KillUnit( GetEnumUnit() )
else
Custom script: call DestroyGroup(GetLastCreatedGroup))'
endif
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Untitled_Trigger_001, 0.05 )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
 
Z

zesoccerking

Guest
or?

or?

Time - Every 0.05 seconds of game time
conditions
actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at (Position of (Picked unit))) Equal to Barrens - Desert
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Custom script: Custom script: call DestroyGroup(GetLastCreatedGroup))'
 

SFilip

Gone but not forgotten
Reaction score
634
Custom script: call DestroyGroup(GetLastCreatedGroup))' <-- :rolleyes:
 
Z

zesoccerking

Guest
dus not work u came up with expected '('


brb have to go eat cheak when i get bak
 

SFilip

Gone but not forgotten
Reaction score
634
yeah you also need () after GetLastCreatedGroup.
 
Z

zesoccerking

Guest
the i did ...

then i did that and now it came up with expected end of line



:banghead:
 

Monovertex

Formerly Smith_S9
Reaction score
1,461
The line is Custom script: call DestroyGroup(GetLastCreatedGroup))
You must add just a "("

Custom script: call DestroyGroup(GetLastCreatedGroup())
 
Z

zesoccerking

Guest
tyyyyyyyyyyyyyyyy

:p :) um now is it posible that some one coul dtell me how to make a unit not move like for a escape maker map... i need to make it stand still
 

SFilip

Gone but not forgotten
Reaction score
634
set his movement speed to 0.
 
Z

zesoccerking

Guest
ty

ty verey much i pm u if i have any thing else to ask seeing as ur verey helpfull
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top