HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Homepoint

07-21-2004, 02:04 AM#1
Rydia
IM making an open RPG map that i would like to develop a homepoint system for. What i mean by homepoint system is, when a hero dies, if theres noone around to revive him he can revive at his homepoint. i want it so theres only one per player, and you can only set them in certain areas.
The homepoint itsself is a unit that can revive fallen heros. so what i was thinking is if your hero is in a certain region and you type -set homepoint or something, the homepoint teleports there. I CAN NOT FIGURE OUT HOW TO DO THAT ^^; so if anyone would know how to make it so when a player types something, it checks where that player's hero is and if its in a certain location (or rect if you use WEU) it moves your homepoint there.
any feedback is greatly appreciated, thanks a bunch -^.^-
07-21-2004, 02:22 AM#2
johnfn
Ok here are the things I think you need:

Events:
A unit types in -set homepoint as an exact match

and (this is a boolean comparison)

((Hero in (homepoint region)) equal to true)

Just check the boolean variable with an if statement, under the then actions use the move trigger to move the homepoint there. Seems easy enough, eh?
07-21-2004, 03:59 AM#3
Shimrra
Another way to do it would be like Blizzard did and use Stones of Ressurection. They could have the taverns ressurect ability and you could just set it so when the Hero came within a certain prozimity of that stone, it created an invisible unit for the Hero that he couldn't control there. Then when he died, the stone would be accesable to the Hero and he could choose to revive himself there. The only other thing you would need to do is make a trigger so that when the Hero revives; his life and mana are set to full because taverns revive you instantly, but leave you weak.