HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Shroom World Revive System

09-20-2006, 09:25 PM#1
Fr0zenLord
Okay i'll explain more now, it didnt work:/ L is a point array 12
TheRevive Unit, is the Circle Of Power, (array 12)
PlayerRevive is, the players (these are all set into the array at map init, on another trigger)
The Region is a region I move the circles back to (im only using myself in this, so theres no other players set in this, -.-)
and I want it so... if "Escaper" is in range of "Revive Circle" and is alive, revive hero, I dont want it to revive if its another circle, if its itself,
So is this even possible? or is there a proper way of doing this lol?
Trigger:
Test
Collapse Events
Time - Every 0.40 seconds of game time
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 11, do (Actions)
Collapse Loop - Actions
Set L[1] = (Position of TheReviveUnit[1])
Set PlayerRevive[(Integer A)] = PlayerRevive[(Player number of (Owner of PlayerRevive[(Integer A)]))]
Set TheRegion[1] = (Center of Rect 059 <gen>)
Set TheReviveUnit[(Integer A)] = TheReviveUnit[(Player number of (Owner of TheReviveUnit[(Integer A)]))]
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Is PlayerRevive[(Integer A)] near TheReviveUnit[(Integer A)] and withing a range of 40.00) Equal to True
(PlayerRevive[(Integer A)] is alive) Equal to True
Collapse Then - Actions
Hero - Instantly revive PlayerRevive[(Integer A)] at L[(Player number of (Owner of PlayerRevive[(Integer A)]))], Hide revival graphics
Unit - Move TheReviveUnit[(Integer A)] instantly to TheRegion[(Player number of (Owner of TheReviveUnit[(Integer A)]))]
Else - Actions



I am going to test it right now, But Im sure it wont work lol.. can anyone tell me if this will work/how I could get it to work?, without using unit groups

Bah ignore this post, found a much easier way to do it with unit groups, without getting the lag... Guess my mind was on a I think I can do this! spree lol..