L
lorpo
Guest
Hey guys,
I'm making a map and bumped at some problems: :banghead:
<1>
Allies Problem:
This is a screenshot of the forces tab now I want that team one (west side player 1,2,...) is an enemy of team two (east side player 6,7,...)
But I want players 11 and 12 fighting but player 11 has to be an ally of team one and an enemy of team two and player 12 has to be an ally of team two and an enemy of team one
<2>
Hero Revive:
For my heroes to revive I'm using a custom script which i copied:
But team one (problem one) has to be in a region named West Side and team two (problem one) has to be in a region named East Side (when their heroes die and need to revive)
<.3>
Hero TP:
In this problem I need to get my heroes tped but not just a normal tp:
Team one may enter the tp (watch screenshot) but team two may not
on the other side it is turned over: Team two may enter but team one may not
Screenshot:
I'm making a map and bumped at some problems: :banghead:
<1>
Allies Problem:
This is a screenshot of the forces tab now I want that team one (west side player 1,2,...) is an enemy of team two (east side player 6,7,...)
But I want players 11 and 12 fighting but player 11 has to be an ally of team one and an enemy of team two and player 12 has to be an ally of team two and an enemy of team one
<2>
Hero Revive:
For my heroes to revive I'm using a custom script which i copied:
Code:
Revive hero
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Unit - A unit owned by Player 9 (Gray) Dies
Unit - A unit owned by Player 10 (Light Blue) Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Custom script: local timerdialog WINDOW
Custom script: local integer HEROWAIT
Custom script: local timer OURTIMER
Custom script: local unit OURHERO
Custom script: set OURHERO = GetDyingUnit()
Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
Custom script: set OURTIMER = CreateTimer()
Custom script: call CreateTimerDialogBJ( OURTIMER, GetPlayerName(GetOwningPlayer(OURHERO)) )
Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
Custom script: set WINDOW = GetLastCreatedTimerDialogBJ()
Custom script: call TimerDialogDisplayForPlayerBJ( true,WINDOW , GetOwningPlayer(OURHERO) )
Custom script: call PolledWait( HEROWAIT )
Custom script: call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayableMapRect()), true )
Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
Custom script: call DestroyTimerDialog(WINDOW)
But team one (problem one) has to be in a region named West Side and team two (problem one) has to be in a region named East Side (when their heroes die and need to revive)
<.3>
Hero TP:
In this problem I need to get my heroes tped but not just a normal tp:
Team one may enter the tp (watch screenshot) but team two may not
on the other side it is turned over: Team two may enter but team one may not
Screenshot: