Numerical Manipulation
Using numbers is one of the most general methods of inputting values into triggers. They are used for a variety of things, including timers, alteration of Units' HP and attack, and more. Inputting numbers gives the user greater control over the aspects of the One of the easiest conditions to create is the "Timer" condition. A trigger with a "Timer" condition simply fires after a certain time, specified by the user. Create a "Timer" condition and type the length of the time delay inside the text box. The condition is now complete. Remember that this condition counts by seconds, so if you wish for the trigger to fire after one minute, make sure to type "60" in the text box. Other commonly used conditions are the "Own Objects", "Own Fewer Objects", and "Objects in Area". These conditions will fire exactly as their names may imply. "Own Objects" will fire once the target player owns a number of certain Units that is more than or equal to the number specified in the text box. "Own Fewer Objects" fires under the opposite condition, which is whenever the target player controls less than or equal to the number of the certain unit that was specified. An "Objects in Area" condition will activate once a specified number of a certain unit is located in the determined area. Numbers are used to change the HP and attack of Units as well. The "Damage Object" effect will deal a specified amount of damage to a certain unit. The "Change Object HP" will raise the maximum HP of a Unit by the specified amount, and the "Change Object Attack" effect increases the Unit's attack by the specified amount. While damaging Units and raising their attack is usually sufficient. Sometimes, it might be more applicable to heal Units, and maybe even decrease their attack. One discovers quickly that a negative sign (-) cannot be typed into the text box for these effects. However, there are ways around this. While the negative sign cannot be typed directly into these text boxes, they can be inserted using the copy and paste functions. Simply type the negative sign somewhere else, copy it (right-click + Copy), then paste it (right-click + Paste) into the appropriate text box. Beware, however, that such text boxes will return to the default value (zero) if you check (click) on the effect again. This drawback can be avoided by using the overflow method. This approach calls for the input of a large number into the text box to negate the values of a smaller number. While the logic behind this is a little more complicated, the technique itself is simple. The overflow number used for these effects is 65536 or 2 The negative sign trick works well with the "Damage Object" effect, but it does not prevent a Unit from "over-healing" or having more HP than its maximum HP. To prevent this, first damage the Unit by its maximum HP, which brings its current HP down to zero. Next, "damage" the Unit by its negative maximum HP to bring it back to full health without going over. [This message has been edited by CrystalCrown (edited 02-27-2003 @ 04:33 PM).]
CRYSTALCROWN
Play Online — Because you really can't gloat about beating the computer.
Learn the Flush — So you don't lose every game in under 20 minutes.
It's not a post count; it's making your posts count.