HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ammo system:how

11-25-2003, 10:48 PM#1
sheep_tag
how do you do make and ammo system.
11-25-2003, 10:51 PM#2
Hunter0000
there are tons of ways, the easies the impliment probally would be:

a) the custom value method
or
b) the item method

Pick one and Il explain it better for you.
11-25-2003, 10:51 PM#3
FerretDruid
There are several ways. But essentially you need to setup variables or custom values for the units, and set them to how much "ammo" you want them to have, then lower than value when they attack. Then disable/change their attack when they are "out" of ammo. You could also use mana instead of variables on units without spells.

Heh, same time post :D
11-25-2003, 11:17 PM#4
sheep_tag
Quote:
Originally posted by Hunter0000
there are tons of ways, the easies the impliment probally would be:

a) the custom value method
or
b) the item method

Pick one and Il explain it better for you.


ill take the item method. or B pls
11-25-2003, 11:19 PM#5
Hunter0000
make an item called "ammo" that has a dummy spell on it with the ammount of charges you want.

Make a trigger that checks attacking units for ammo, if they have it, it uses one charge then continues attacking, if not it stops attacking.
11-26-2003, 12:22 AM#6
Dragon
E- A unit attacks
A- Subtract 1 wood from owner of attacking unit

C- Player X has no wood
A- Set ally status of player X to player X to Ally
A- Lock ally status

And make it so the unit can't attack friendly.

*Note: Some of these events/actions/conditions may not exist and/or be phrased differently in the World Editor.
11-26-2003, 01:28 AM#7
sheep_tag
ok if i have it so it drains one amount of ammo (item) then when i do that what if i want them to switch to another attack