Hi, im making a map (Dungeoneers) and i made some commands that dont work..:
-out (exit dungeons)
Trigger:
Trigger:
The script
Makes an error of 'Expected a name'
Thank you, +rep to helpfullness.
I appreciate your help
-out (exit dungeons)
Trigger:
-
ComOut
-
Events
-
Player - Player 1 (Red) types a chat message containing -out as An exact match
-
Player - Player 2 (Blue) types a chat message containing -out as An exact match
-
Player - Player 3 (Teal) types a chat message containing -out as An exact match
-
Player - Player 4 (Purple) types a chat message containing -out as An exact match
-
Player - Player 5 (Yellow) types a chat message containing -out as An exact match
-
Player - Player 6 (Orange) types a chat message containing -out as An exact match
-
Player - Player 7 (Green) types a chat message containing -out as An exact match
-
Player - Player 8 (Pink) types a chat message containing -out as An exact match
-
Player - Player 9 (Gray) types a chat message containing -out as An exact match
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Entire map) owned by (Matching player)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(dung1ComOut <gen> contains (Picked unit)) Equal to True
-
-
Then - Actions
-
Unit - Move (Picked unit) instantly to (Center of Town2 <gen>)
-
-
Else - Actions
-
-
-
-
Unit Group - Pick every unit in (Units in (Entire map) owned by (Matching player)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dung1ComOut2 <gen> contains (Picked unit)) Equal to True
-
-
Then - Actions
-
Unit - Move (Picked unit) instantly to (Center of Town2 <gen>)
-
-
Else - Actions
-
-
-
-
-
Trigger:
-
TrigSpawn
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
(Custom value of (Triggering unit)) Greater than 0
-
-
Actions
-
Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
-
Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
-
Wait RespawnTime game-time seconds
-
Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),270),ii)
-
-
The script
-
call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),270),ii)
JASS:
call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),270),ii)
Thank you, +rep to helpfullness.
I appreciate your help
Last edited: