HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

can somebody tell me how to do this?

09-12-2003, 04:55 PM#1
Nightwraith
Im making a map that is to contain a new revival system (or i dont really know if it has been made, but wtf)
here's how it should be working:

A hero dies, and one of his allies enters a cicle of power, which is infront of a portal, then, a dialog should come up, containing a list of the players with dead heroes, and a () with the cost for revival inside (which is going to be lumber(or if the lumber cost is going to be too hard to make, then just screw it, it aint that important))
now, when a player clicks one of the dead players, the lumber the revival costs should be taken away from the *LIVING* player, and his hero should be passive for 45 secs(ei. cant be issued any orders)

when the 45 sec timer is passed, the living hero is now controlable again, and the dead hero(which was being revived) is brought back to life, coming out of the portal


thx for reading this, and special thx for the one coming up with the answer.... hope ya can help
09-12-2003, 05:05 PM#2
Draco
It's possible, but there's no way I'll write a trigger that big for you.

For the dialog, I'd use IF/Then/Elses for each button i.e...

If "RedHero" is dead, then add button to dialog "resherodialog" named [Here, you'd have to use concactate strings or whatever it's called, to combine these, plus leave at least one space and the end of each string] (Player 1's Hero ) + ( *convert integer to string "redherocost")

Ok, you'd need some sort of an integer (i.e. "redherocost" to keep track of how much it would cost to revive the hero)

THe next trigger would be if a dialog button is clicked for dialog "resherodialog" with a condition for button clicked equal to the one you used above.

Now, you'll need another if/then/else to make sure that the player has enogh lumber (interger comparison). If he does, then subtract lumber and revive hero at location, else do nothing or game text saying you don't have enough money.

As for the passive part, you could change ownership to neutral passive or just diable control for a player.