HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help me! (again) plz

06-23-2003, 04:19 PM#1
Gnoff the Small
ok, im making a map and i want to use lumber as ammo, i have tryed to find a way to do this but i cant work it out. help plz.

bt, i want differnt units to use different amounts of lumber per attack, eg minigunner uses 1 lumber per shot but a slow fireing tank uses 5 lumber.
06-23-2003, 04:29 PM#2
Dead-Inside
Hmm...

A unit is attacked

Attacking unit = XXX do remove XXX lumber for owner of attacking unit else do nothing
Attacking unit = XXX do set AmmoXXX = AmmoXXX - (Same as lumber) else do nothing

Add one for all the units
Now when you change weapons... You'll have to use the AmmoXXX, the XXX represents your weapon names... When you switch weapon, set the wood to whatever AmmoName you want to use...

That's a start, I would type up the whole thing for you, but I'm too lazy... Maybe later.

Regards
Dead-Inside
06-23-2003, 04:31 PM#3
Mr. Thermistor
All units would use the same ammo?

A way to do this would be to give the unit the Cargo Hold (Orc Burrow) and Load (Orc Burrow) abilities. To enable attack, create a peon and load it. To disable, unload the Peon and remove it.

I think a better way would be to use mana as ammo so all the units don't die at the same time. Use Moon Wells to replenish.
06-23-2003, 04:38 PM#4
Gnoff the Small
those skills only work on burrows. how would i get the unit to stop attacking when there is no lumber?
06-23-2003, 05:06 PM#5
Gnoff the Small
ok i have tryed to start making the trigger but when i try and get a unit is attacked i can only get no unit is attacked or some variable stuff i dont understand.
06-23-2003, 05:35 PM#6
Mr. Thermistor
>those skills only work on burrows. how would i
>get the unit to stop attacking when there is no
>lumber?

No, you add the abilities to your ammo-using unit.

>ok i have tryed to start making the trigger but
>when i try and get a unit is attacked i can only
>get no unit is attacked or some variable stuff i
>dont understand.

Event Response - Attacking Unit

Another way to get the unit to stop attacking is to modify Cripple so that it reduces 100% of attack damage and 100% attack speed and place this debuff on the unit.
06-23-2003, 05:38 PM#7
Mr. Thermistor
Events:
Player Properties - (Player's) current lumber becomes equal to zero

Actions:
Unit Group - Pick every unit in units belonging to triggering player...
06-23-2003, 08:34 PM#8
Dead-Inside
Omg, you n00bs...
You need to replace it with a DUMMY unit when you run out of ammo... look in THIS thread.

Regards
Dead-Inside
06-23-2003, 09:11 PM#9
Mr. Thermistor
>Omg, you n00bs...
>You need to replace it with a DUMMY unit when
>you run out of ammo... look in THIS thread.

That's bloat. There are better ways to do things.
06-24-2003, 07:59 AM#10
Dead-Inside
Liiike? Turn of the attack? Alternativly you could set aquisition range to 0, that's a though...