EDIT: Line 139:Invalid argument type (rect)
set bj_forLoopAIndex = bj_forLoopAIndex + 1
I suppouse this is what you need
PS sorr for making you wait had some iterner problems.
EDIT2:Ill just copy pastethe whole thing than
EDIT 3:Line 139:Invalid argument type (rect)
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
hashtable udg_HashTable = null
group udg_UnitGroup = null
location array udg_Points
unit udg_Unit = null
real array udg_Real
location array udg_ABI_Point_Position
string array udg_String
attacktype array udg_Attack_Type
damagetype array udg_Damage_Type
real array udg_Real_ABI_Damage
group array udg_ABI_Unit_Group
integer array udg_Integer
unit udg_WaterTotem = null
unit udg_WindTotem = null
unit udg_FireTotem = null
unit udg_BigSpider = null
unit udg_Troll = null
sound udg_Bandit = null
unit array udg_BandiAttacker
unit udg_HumanWarr = null
weathereffect udg_RainLoarderon = null
rect array udg_temp_loc
// Generated
rect gg_rct_Trap_Bandits = null
rect gg_rct_Select_Troll_SHaman = null
rect gg_rct_Select_Elf_Archer = null
rect gg_rct_Select_Sorceress = null
rect gg_rct_Select_Warrior = null
rect gg_rct_Start = null
rect gg_rct_Bandit_1 = null
rect gg_rct_Bandit_2 = null
rect gg_rct_Bandit_3 = null
rect gg_rct_Bandit_4 = null
rect gg_rct_Bandit_5 = null
rect gg_rct_Bandit_6 = null
rect gg_rct_Grom_Moves = null
sound gg_snd_BanditYesAttack2 = null
sound gg_snd_O05Mannoroth39 = null
sound gg_snd_O05Grom40 = null
sound gg_snd_O05Grom42 = null
sound gg_snd_O05Mannoroth43 = null
trigger gg_trg_Weather_Rain = null
trigger gg_trg_Selection_System_Troll_Shaman = null
trigger gg_trg_Selection_System_Human_Warrior = null
trigger gg_trg_Charge_HashTable = null
trigger gg_trg_Charge_start = null
trigger gg_trg_Charge_loop = null
trigger gg_trg_Defend_1 = null
trigger gg_trg_Elementals_Call = null
trigger gg_trg_Bandits_Ambuish = null
unit gg_unit_e001_0032 = null
unit gg_unit_e001_0031 = null
unit gg_unit_H000_0022 = null
unit gg_unit_O000_0024 = null
unit gg_unit_e001_0029 = null
unit gg_unit_e001_0030 = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set udg_UnitGroup = CreateGroup()
set i = 0
loop
exitwhen (i > 1)
set udg_Real
= 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 1)
set udg_String = ""
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 1)
set udg_Real_ABI_Damage = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 1)
set udg_ABI_Unit_Group = CreateGroup()
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 1)
set udg_Integer = 0
set i = i + 1
endloop
endfunction
function Trig_Bandits_Ambuish_Func012C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Troll ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_HumanWarr ) ) then
return true
endif
return false
endfunction
function Trig_Bandits_Ambuish_Conditions takes nothing returns boolean
if ( not Trig_Bandits_Ambuish_Func012C() ) then
return false
endif
return true
endfunction
function Trig_Bandits_Ambuish_Actions takes nothing returns nothing
set udg_temp_loc[1] = gg_rct_Bandit_1
set udg_temp_loc[2] = gg_rct_Bandit_2
set udg_temp_loc[3] = gg_rct_Bandit_3
set udg_temp_loc[4] = gg_rct_Bandit_4
set udg_temp_loc[5] = gg_rct_Bandit_5
set udg_temp_loc[6] = gg_rct_Bandit_6
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'nban', Player(11), GetRectCenter(udg_temp_loc[GetForLoopIndexA()]), bj_UNIT_FACING )
set udg_BandiAttacker[GetForLoopIndexA()] = GetLastCreatedUnit()
call RemoveLocation(udg_temp_loc[GetForLoopIndexA()])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call PlaySoundBJ( gg_snd_BanditYesAttack2 )
set udg_Bandit = GetLastPlayedSound()
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), udg_BandiAttacker[1], "TRIGSTR_183", udg_Bandit, "TRIGSTR_184", bj_TIMETYPE_ADD, 0, true )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Bandits_Ambuish takes nothing returns nothing
set gg_trg_Bandits_Ambuish = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Bandits_Ambuish, gg_rct_Trap_Bandits )
call TriggerAddCondition( gg_trg_Bandits_Ambuish, Condition( function Trig_Bandits_Ambuish_Conditions ) )
call TriggerAddAction( gg_trg_Bandits_Ambuish, function Trig_Bandits_Ambuish_Actions )
endfunction
EDIT 4:if there is any chance of you giving me some link or explaining yourself how do you find where the error is.Because this is not the first place i meet one of em errors
Edit 5:Says this set bj_forLoopAIndex = bj_forLoopAIndex + 1 is line 139
EDIT 6 Maybe i did something wrong here ?
Bandits Ambuish
Events
Unit - A unit enters Trap Bandits <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Triggering unit) Equal to Troll
(Triggering unit) Equal to HumanWarr
Actions
Set temp_loc[1] = Bandit 1 <gen>
Set temp_loc[2] = Bandit 2 <gen>
Set temp_loc[3] = Bandit 3 <gen>
Set temp_loc[4] = Bandit 4 <gen>
Set temp_loc[5] = Bandit 5 <gen>
Set temp_loc[6] = Bandit 6 <gen>
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Unit - Create 1 Bandit for Player 12 (Brown) at (Center of temp_loc[(Integer A)]) facing Default building facing degrees
Set BandiAttacker[(Integer A)] = (Last created unit)
Custom script: call RemoveLocation(udg_temp_loc[GetForLoopIndexA()])
Sound - Play BanditYesAttack2 <gen>
Set Bandit = (Last played sound)
Cinematic - Send transmission to (All players) from BandiAttacker[1] named Bandit: Play Bandit and display Say your prayers!. Modify duration: Add 0.00 seconds and Wait
Trigger - Turn off (This trigger)
EDIT 7:its actualy a Region variable and i belive they should be
EDIT 8:LOL i didnt know it has to be point i fixed it thank you and rly sorry for the spend time
EDIT 9:Nah i made it a point variable and it worked,but still cant get a sound out.
EDIT 10:No,but i will try now
EDIT 11idnt work.
EDIT 12:I used to make it back at the days but i dont remember how. xD
EDIT 13:I feel so rude taking so mutch of your time ;[
EDIT 14:Finaly xD Thanks alot again!When i get more things done on this map ill inform you so that you can check it out if you want that is xD
EDIT 15:Hehehe ofc ;]