HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Give Hero status icon to multiple players?

11-21-2002, 07:03 PM#1
Guest
Heyas..

Im developing a new game type for multiplayer.. I would like to be able to give alies of a player the hero status icons for the alies heros..

Any ideas on how to go about achiving something like this? Or if its possible at all? Any comments or ideas would be great! :)
11-21-2002, 07:41 PM#2
Guest
WTF are you talkin about?
11-21-2002, 07:48 PM#3
weaaddar
He wants the little icons to apear on your screen even if its not your hero.
I don't think its possible
11-21-2002, 08:40 PM#4
Guest
Give the allies a "copy" of the hero. When player 1 gets the hero, create the same hero for player 2 then change it's vertex coloration to 0. Make a trigger so that when that hero is selected, the camera automatically selects player 1's hero.

This is just a thought and I don't claim that it will work.

Care.
11-22-2002, 12:19 AM#5
Guest
Yeah I was thinking about doing that... And changing its life and mana to the same as the real one.. I might try and see what I can do..

But would it flash red if I damaged it? And wouldnt the "were under attack" mini map ping happen over a non-existant hero? Still might be the best that can be done..
11-22-2002, 10:53 AM#6
Guest
if u really want, get something to attack ur non-existant hero when the other one gets attacked lol :)
11-22-2002, 10:08 PM#7
Guest
What about doing this by editing something in the files by hand?

I mean there must be some function call or something that creates the hero status icon for the owning player.. Why not tell it to create it for other players as well??

Is there an online list of them or something? Where should I start digging to find this stuff out?
11-24-2002, 02:32 AM#8
dataangel
Don't bother editing files. Just create a copy for each player and periodically set with triggers the copy's HP/Mana to equal the real one's. Then make it so if they select the copy (by clicking the button) the camera centers on the real hero, and make it so any orders they try and give are canceled (just detect any order they give, give the unit to a computer player, tell the unit to stop, give it back to player). We're being attacked and minimap ping should still work properly if the players are allied. If not, then just use triggers to detect attack and play the sound and make the map ping (it's in the cinematics section).
11-24-2002, 06:43 AM#9
Guest
Why worry about the copy's hp/mana? Just whenever your copy is selected, select the REAL unit!

The stats at the bottom will change to the real unit. You'll just need a variable or something to track what the real unit is for that player's copy.

Care.
11-24-2002, 03:20 PM#10
Guest
yeh but what about the stats on the icon at the top..
11-24-2002, 04:41 PM#11
Guest
You could also try a leaderboard. That way you could turn it on or off if you wanted to, there are no extra units that a player shouldn't control, and it's pretty easy to update.

Just do something like:

Team Status
Player 1 HP: XXX
Player 2 HP: YYY
Player 3 HP: ZZZ

The good thing about that is you can have more than 5 people show on it.