| 02-20-2005, 10:12 PM | #1 |
Me and my friend the other day was programming some triggers for a hero tournament like map and then he converted text (gui-jass) now i cannot do anything and those triggers were made solong ago so i need your help to "translate" this back to gui or so, so that i could understand it. Err here is the code i do not know how to make that gray box so if you could tell me that as well i will do it. function Trig_CreateUnit_Func001001 takes nothing returns boolean return ( udg_tempS == "Paladin" ) endfunction function Trig_CreateUnit_Func002001 takes nothing returns boolean return ( udg_tempS == "Archmage" ) endfunction function Trig_CreateUnit_Func003001 takes nothing returns boolean return ( udg_tempS == "MK" ) endfunction function Trig_CreateUnit_Func004001 takes nothing returns boolean return ( udg_tempS == "BM" ) endfunction function Trig_CreateUnit_Func005001 takes nothing returns boolean return ( udg_tempS == "FarSeer" ) endfunction function Trig_CreateUnit_Func006001 takes nothing returns boolean return ( udg_tempS == "Tauren" ) endfunction function Trig_CreateUnit_Func007001 takes nothing returns boolean return ( udg_tempS == "DK" ) endfunction function Trig_CreateUnit_Func008001 takes nothing returns boolean return ( udg_tempS == "DL" ) endfunction function Trig_CreateUnit_Func009001 takes nothing returns boolean return ( udg_tempS == "Lich" ) endfunction function Trig_CreateUnit_Func010001 takes nothing returns boolean return ( udg_tempS == "Kotg" ) endfunction function Trig_CreateUnit_Func011001 takes nothing returns boolean return ( udg_tempS == "Potm" ) endfunction function Trig_CreateUnit_Func012001 takes nothing returns boolean return ( udg_tempS == "DH" ) endfunction function Trig_CreateUnit_Func014001 takes nothing returns boolean return ( udg_tempI == 1 ) endfunction function Trig_CreateUnit_Func015001 takes nothing returns boolean return ( udg_tempI == 2 ) endfunction function Trig_CreateUnit_Func016001 takes nothing returns boolean return ( udg_tempI == 3 ) endfunction function Trig_CreateUnit_Func017001 takes nothing returns boolean return ( udg_tempI == 4 ) endfunction function Trig_CreateUnit_Func018001 takes nothing returns boolean return ( udg_tempI == 5 ) endfunction function Trig_CreateUnit_Func019001 takes nothing returns boolean return ( udg_tempI == 6 ) endfunction function Trig_CreateUnit_Func020001 takes nothing returns boolean return ( udg_tempI == 7 ) endfunction function Trig_CreateUnit_Func021001 takes nothing returns boolean return ( udg_tempI == 9 ) endfunction function Trig_CreateUnit_Func025001 takes nothing returns boolean return ( udg_counter[udg_tempI] == 5 ) endfunction function Trig_CreateUnit_Func025002001002 takes nothing returns boolean return ( GetUnitTypeId(GetFilterUnit()) == 'ewsp' ) endfunction function Trig_CreateUnit_Func025002002 takes nothing returns nothing call RemoveUnit( GetEnumUnit() ) endfunction function Trig_CreateUnit_Actions takes nothing returns nothing if ( Trig_CreateUnit_Func001001() ) then call CreateNUnitsAtLoc( 1, 'Hpal', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func002001() ) then call CreateNUnitsAtLoc( 1, 'Hamg', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func003001() ) then call CreateNUnitsAtLoc( 1, 'Hmkg', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func004001() ) then call CreateNUnitsAtLoc( 1, 'Obla', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func005001() ) then call CreateNUnitsAtLoc( 1, 'Ofar', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func006001() ) then call CreateNUnitsAtLoc( 1, 'Otch', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func007001() ) then call CreateNUnitsAtLoc( 1, 'Udea', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func008001() ) then call CreateNUnitsAtLoc( 1, 'Udre', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func009001() ) then call CreateNUnitsAtLoc( 1, 'Ulic', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func010001() ) then call CreateNUnitsAtLoc( 1, 'Ekee', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func011001() ) then call CreateNUnitsAtLoc( 1, 'Emoo', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif if ( Trig_CreateUnit_Func012001() ) then call CreateNUnitsAtLoc( 1, 'Edem', ConvertedPlayer(udg_tempI), GetRectCenter(udg_reigon[udg_tempI]), 270.00 ) endif call SetUnitInvulnerable( GetLastCreatedUnit(), true ) if ( Trig_CreateUnit_Func014001() ) then set udg_p1heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func015001() ) then set udg_p2heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func016001() ) then set udg_p3heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func017001() ) then set udg_p4heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func018001() ) then set udg_p5heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func019001() ) then set udg_p6heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func020001() ) then set udg_p7heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( Trig_CreateUnit_Func021001() ) then set udg_p8heroS[udg_counter[udg_tempI]] = udg_tempS endif if ( udg_tempI == 1 ) then set udg_p1hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif if ( udg_tempI == 2 ) then set udg_p2hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif if ( udg_tempI == 3 ) then set udg_p3hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif if ( udg_tempI == 4 ) then set udg_p4hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() else call DoNothing( ) endif if ( udg_tempI == 5 ) then set udg_p5hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif if ( udg_tempI == 6 ) then set udg_p6hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif if ( udg_tempI == 7 ) then set udg_p7hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif if ( udg_tempI == 9 ) then set udg_p8hero[udg_counter[udg_tempI]] = GetLastCreatedUnit() endif set udg_counter[udg_tempI] = ( udg_counter[udg_tempI] + 1 ) call CommentString( "REMOVE WISP" ) if ( Trig_CreateUnit_Func025001() ) then call ForGroup( GetUnitsOfPlayerMatching(ConvertedPlayer(udg_tempI), Condition(function Trig_CreateUnit_Func025002001002)), function Trig_CreateUnit_Func025002002 ) else call DoNothing( ) endif endfunction //=========================================================================== function InitTrig_CreateUnit takes nothing returns nothing set gg_trg_CreateUnit = CreateTrigger( ) call TriggerAddAction( gg_trg_CreateUnit, function Trig_CreateUnit_Actions ) endfunction |
| 02-21-2005, 12:51 AM | #2 |
don't you have a backup of the map? even quite an old one would prolly work. |
