HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to detect the first signs of activity?

03-12-2004, 01:10 AM#1
Quetz
I'm trying to present a difficulty selection system to the first active person, a la Skibi TD. I can't really see any events that would qualify as activity, other than showing a message that says whoever hits a certain key first gets to choose the difficulty...

Also, can I detect what % of a units life is left, and if so, can i subtract that # from an already specified integer?

Ie a footman at 50% health reaches his goal, I want to do 50 damage to a certain unit. Is this possible?
03-12-2004, 01:42 AM#2
Narwanza
1. I don't quite know what you mean. I don't really know how skibi works but I have played it and i guess it is heirarchal (player 1 -> player 2 -> player 3 etc..)

2. Easily done with JASS, I don't know how you would do it in GUI. If it a preplaced unit you can do the game Value of real variable, but if it isn't, then it can only be done through JASS.
03-12-2004, 01:43 AM#3
BattleBotv8.2
Do if the person hits esc and boolean varible equals false, then open dialoge and set boolean as true.

Then if a unit enters region, do Set XInterger to = Conversion Real to Interger - Life % of Entering Unit
Set life of XUnit to Life of XUnit - Interger Conversion to Real