HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

ammo amp help

07-26-2004, 05:33 PM#1
Elthanor
im trying to make a wy that then a unit attack, he loses somthing(maybe mana or lik lumber) and if i have 0, then i cant use attack cus i have no mana/lumbr/ammo. I know there are maps like this, can i just have 1 or can someone tell me how to make it! plz! ill give u credit! thanx!
07-26-2004, 05:36 PM#2
Rafael Br
Just make that your unit has 1 dmg, and add to it a modified searing arrows abillity, so if there is no mana it will deal only 1 dmg, wich is almost nothing.Another idea would be use triggers to block the attack.
07-26-2004, 08:06 PM#3
Elthanor
lol. i dont want it to attack at all. and plz give me the triggers. im new at trigges. thanx
07-26-2004, 10:34 PM#4
qmrcool
Well I'm not sure on too much on how the system works but I do know how to stop a unit from attacking completely. You make the player allied with the enemy player (not the enemy player to the ally so the enemy can still attack) and then remove allied and/or friendly from the units target allowed. You use a trigger so when whatever you use (lumber/mana) reaches 0 you make the player allied to the enemy.
07-26-2004, 11:56 PM#5
th15
Code:
Event:
Unit is attacked

Condition:
Real comparison- Attacking unit's mana less than 1.00

Action:
Issue order with no target- Order attacknig unit to stop

If you'd rather use unit custom value or somethng else, then change the condition. You'll have to write your own trigger/come up with your own method for reducing mana/ammo count. Personally I would do this using unit custom values.
07-27-2004, 01:27 AM#6
Syco
Okay, I'll try to put this so you can understand it:
[Idiot]
Lol liek u prbly wnt 2 du it lyk in da fps gam wel wut u ned 2 du is lyk luk in der, but i kud du it 4 u n liek her
Code:
Event:
Unit is attacked

Actions:
-If/then/else Multiple
(If)
Integer Comparison - (Charges remaining in (Item carried by (Attacking unit) of type "Lol liek ur swrd dmmy")) Equal to 0
(then)
Unit - Issue order with no target- Order attacking unit to stop
(else)
Item - Set charges remaining in (Item carried by (Attacking unit) of type "Ur swd agn") to (Arithmetic - (Charges remaining in (Item carried by (Attacking unit) of type "swd agn")) - 1)
n liek mak ur swd lyk pwn i meen lyk du dmg itz in da prprteez i lyk dunno how 2 spel dat wrd[/idiot]
And before you learn to use WE, which my six year old cousin can use, I suggest learning something he could do two years before that: spell.
-Syco
07-27-2004, 02:03 AM#7
evilprogrammer
Quote:
Originally Posted by Syco
Okay, I'll try to put this so you can understand it:
[Idiot]
Lol liek u prbly wnt 2 du it lyk in da fps gam wel wut u ned 2 du is lyk luk in der, but i kud du it 4 u n liek her
Code:
Event:
Unit is attacked

Actions:
-If/then/else Multiple
(If)
Integer Comparison - (Charges remaining in (Item carried by (Attacking unit) of type "Lol liek ur swrd dmmy")) Equal to 0
(then)
Unit - Issue order with no target- Order attacking unit to stop
(else)
Item - Set charges remaining in (Item carried by (Attacking unit) of type "Ur swd agn") to (Arithmetic - (Charges remaining in (Item carried by (Attacking unit) of type "swd agn")) - 1)
n liek mak ur swd lyk pwn i meen lyk du dmg itz in da prprteez i lyk dunno how 2 spel dat wrd[/idiot]
And before you learn to use WE, which my six year old cousin can use, I suggest learning something he could do two years before that: spell.
-Syco


hmmmmmmmm..... i never thought about ammo befor
ilike the concept, ill have to try it out
07-27-2004, 05:20 AM#8
Syco
Quote:
Originally Posted by evilprogrammer
ilike the concept
Just remember what I said, it's not mine, it's the FPS mod. I don't know if that's exactly how they do it, but it'd work. I don't want to get credited for their work and have people breathing down my neck.
Oh, and do us all a favor and edit your quotes to show only exactly what you're responding to, it keeps topic size down and all.
-Syco