Well essentially, me and a couple of friends are making a map, and I decided that I might end up asking more than one question here, so I'd make a topic in case I asked any more.
I'll start off with this one: How might I go about stopping specific units from attacking other specific units.
For instance: Vampire 1 decides that he doesn't like Vampire 2, and attacks Vampire 2. How can I stop that?
In the same case, what if Vampire 1 wants to attack this building, which I don't want him to, but I want Vampire 2 to be able to. Thanks in advance for your help.
Vampirism Last Stand (Work In Progress)
Moderator: Cheaters
-
- Newcomer
- Posts: 14
- Joined: January 21st, 2008, 9:38 pm
- Title: Do a barrel roll
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Vampirism Last Stand (Work In Progress)
Set variables on both units, and do a, "(First Variable) Attacks a Unit", and a condition is "Attacked Unit equals (Second Variable)", then make first variable do the command stop, else do nothing.Itachiro wrote:Well essentially, me and a couple of friends are making a map, and I decided that I might end up asking more than one question here, so I'd make a topic in case I asked any more.
I'll start off with this one: How might I go about stopping specific units from attacking other specific units.
For instance: Vampire 1 decides that he doesn't like Vampire 2, and attacks Vampire 2. How can I stop that?
In the same case, what if Vampire 1 wants to attack this building, which I don't want him to, but I want Vampire 2 to be able to. Thanks in advance for your help.
-
- The Flying Cow!
- Posts: 2196
- Joined: November 2nd, 2007, 10:34 pm
- Location: Melbourne
Re: Vampirism Last Stand (Work In Progress)
Don't put in 'Do Nothing'... Leave the 'else' bit blank.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
AutoCP3 now available for free!
-
- Newcomer
- Posts: 14
- Joined: January 21st, 2008, 9:38 pm
- Title: Do a barrel roll
Re: Vampirism Last Stand (Work In Progress)
Thanks for your help for the first trigger.
Ahah! I knew I would ask something again. How might I go about setting hp and attack over 500k? Also, with any other variable over the limit it allows?
Again, thanks in advance.
Ahah! I knew I would ask something again. How might I go about setting hp and attack over 500k? Also, with any other variable over the limit it allows?
Again, thanks in advance.
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Vampirism Last Stand (Work In Progress)
With triggers?
Stats (triggered)?
Abilities?
There is many ways.
Stats (triggered)?
Abilities?
There is many ways.
-
- Newcomer
- Posts: 14
- Joined: January 21st, 2008, 9:38 pm
- Title: Do a barrel roll
Re: Vampirism Last Stand (Work In Progress)
Can you please explain a little more, cause essentially I'm trying to make it so a building can go over the limit of 500k and I don't know any triggers that effect buildings before they are created...
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Vampirism Last Stand (Work In Progress)
You can't flatly make someone's attack damage or HP without doing editing in the object editor. Therefore, it requires a bit more work. Aero should explain it better when he gets around to replying, XD.Itachiro wrote:Can you please explain a little more, cause essentially I'm trying to make it so a building can go over the limit of 500k and I don't know any triggers that effect buildings before they are created...
-
- Member
- Posts: 77
- Joined: May 27th, 2008, 9:08 pm
Re: Vampirism Last Stand (Work In Progress)
you could use upgrades, make an upgrade that adds health and give it X levels, then set the level of the upgrade for the players 0.01 seconds into game then all the buildings will spawn with that upgrade and get the bonus health.
-
- Newcomer
- Posts: 14
- Joined: January 21st, 2008, 9:38 pm
- Title: Do a barrel roll
Re: Vampirism Last Stand (Work In Progress)
Thanks a bunch rich, I like that idea. Anywayz, I may request this topic be moved to JASS cause I'm starting to learn JASS xD but for now it's all good