Not attack

JesusFreak

Member!
Joined
Apr 12, 2004
Messages
124
Reaction score
0
Location
In a Box, on the side of the street
Website
Visit site
hey there are those games that, when your "bullets" (gold) is down to zero, your guy can't attack ppl, how do i do the no attacking part, i have the no gold part, but i can't figure out the no attacking part.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Play around with alliancy with ammo. If your gold count is 0, then you are allied with the zombies, but also they hate you. Therefore, the zombies can still bite your head off while u are sitting there trying to reload your gun. That is how Zombie Hotel in Brood War did it!
 

JesusFreak

Member!
Joined
Apr 12, 2004
Messages
124
Reaction score
0
Location
In a Box, on the side of the street
Website
Visit site
ummm, can't they still attack them one at a time with the a button?
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Yes, but why would you do that when ur being attacked by like 20 zombies at once? Unless you can do splash damage, its almost impossible!!!
 

JesusFreak

Member!
Joined
Apr 12, 2004
Messages
124
Reaction score
0
Location
In a Box, on the side of the street
Website
Visit site
thats not the point, you can still attack but, i think i solved the problem, make triggers (one one, which ever) when gold = 0 then set the alliance, when gold = 0 every 1 sec, if unit is told to target something, stop it from doing so
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Well, you got it! At least I gave you a suggestion my friend ;)
 

JesusFreak

Member!
Joined
Apr 12, 2004
Messages
124
Reaction score
0
Location
In a Box, on the side of the street
Website
Visit site
hey for anyone out there who needs the code, i have it line for line, if you want, i am too lazy to post it so im me (knotleftB) and i will send u it
 

Paella

Member!
Joined
Jan 17, 2005
Messages
46
Reaction score
0
I don't think that it should be done that way. The fact is that you may also want it so that a melee attack without ammo restraints can also fire. This nullifies the ally player option. So how do you do it like that?
 

Darimus

BattleForums Addict
Joined
Oct 2, 2003
Messages
681
Reaction score
0
Website
www.spaceman.vze.com
Use this event: Unit - Unit is attacked

if the attacking unit is a player, AND they have 0 gold (ammo...), then do: Issue Order to (Attacking Unit) to (Stop)
 

JesusFreak

Member!
Joined
Apr 12, 2004
Messages
124
Reaction score
0
Location
In a Box, on the side of the street
Website
Visit site
lol, if u tried that, it does not work, to issue the order STOP, it is over ridden, the priority of stop is lower then attack in anyform, it won't work, it requires 2 trigger (or one big one)

also the mele attack can be done, but it is more of a move, not an attack. it would be like thunder but not, you know what i mean?
 

Darimus

BattleForums Addict
Joined
Oct 2, 2003
Messages
681
Reaction score
0
Website
www.spaceman.vze.com
If that does not work, use Unit - Pause (unit), then order them to Stop, then Unpause them. This works for sure, as I have used it before in a map which has an ammo system and does not allow firing with 0 ammo.
 

JesusFreak

Member!
Joined
Apr 12, 2004
Messages
124
Reaction score
0
Location
In a Box, on the side of the street
Website
Visit site
y didn't u tell me that at the start, it works, idk which is better, in NOTD they allie and tell them to stop attack (like i was doing), the pause order stop and unpause, works too, without allying, but it does a lot of orders (it actually takes all commands for that unita way, then orders it to stop moving and stop all other orders, and then gives back command to you) and if u do an attack with the a button, an click it does a funky thing, and sometimes unclicks from the unitm and then u u have to click on it again, which can be fatal in a RD game, but i like this way, now to do a mele attack thingy.(yes i said thingy)
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
You're better off with Pause like Dari said. If you use Stop, the command must be repeated every .01 seconds or something (constant effect). Then again you would need allies all over you, otherwise you'd be dead from reloading :p
 

Paella

Member!
Joined
Jan 17, 2005
Messages
46
Reaction score
0
Won't all of those options stop the melee attack from working too?
 

Darimus

BattleForums Addict
Joined
Oct 2, 2003
Messages
681
Reaction score
0
Website
www.spaceman.vze.com
The goal of pausing and ordering stop to a unit when they are out of order is so that no attacks work... So yes, it will prevent melee attacks as intended
 

Paella

Member!
Joined
Jan 17, 2005
Messages
46
Reaction score
0
I don't believe that it was intended. The idea is that a unit has a gun, and when the gun runs out of ammo, he can't use it. If you can't use it then you sure as hell can still punch, or hit with the but end of your gun, so that attack should be allowed I think.
 

tassadar920

Member!
Joined
May 18, 2003
Messages
2,048
Reaction score
0
Location
My house
There's a condition that checks for the "order" string of the unit, the order should be either:

attack1 or attack2 (i think, not totally sure) depending on which attack the unit is using. Just run a check for this in the conditions.
 

Paella

Member!
Joined
Jan 17, 2005
Messages
46
Reaction score
0
I have a great idea!
Somehow cast the spell silence on the unit, but rename it "out of ammo" I know that this would mess up the melee attacks, but I think that those should be manual anyway, or auto firing abilities.
 

tassadar920

Member!
Joined
May 18, 2003
Messages
2,048
Reaction score
0
Location
My house
There you go, works fine, silence the unit and then make an autocast ability that forces the unit to attack another unit. Easy as pie.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Paella said:
I have a great idea!
Somehow cast the spell silence on the unit, but rename it "out of ammo" I know that this would mess up the melee attacks, but I think that those should be manual anyway, or auto firing abilities.
But then the unit cannot have any attacks WHAT so EVER and the targetable units must be set so it shoots the proper units.
 

NewPosts

New threads

Top