Vampirism Last Stand (Work In Progress)

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Itachiro
Newcomer
Posts: 14
Joined: January 21st, 2008, 9:38 pm
Title: Do a barrel roll

Vampirism Last Stand (Work In Progress)

Post by Itachiro »

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.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Vampirism Last Stand (Work In Progress)

Post by Bartimaeus »

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.
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.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Vampirism Last Stand (Work In Progress)

Post by Ozzapoo »

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!
User avatar
Itachiro
Newcomer
Posts: 14
Joined: January 21st, 2008, 9:38 pm
Title: Do a barrel roll

Re: Vampirism Last Stand (Work In Progress)

Post by Itachiro »

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.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Vampirism Last Stand (Work In Progress)

Post by Aero »

With triggers?
Stats (triggered)?
Abilities?

There is many ways.
User avatar
Itachiro
Newcomer
Posts: 14
Joined: January 21st, 2008, 9:38 pm
Title: Do a barrel roll

Re: Vampirism Last Stand (Work In Progress)

Post by Itachiro »

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...
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Vampirism Last Stand (Work In Progress)

Post by Bartimaeus »

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...
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.
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: Vampirism Last Stand (Work In Progress)

Post by Rich Kane »

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.
User avatar
Itachiro
Newcomer
Posts: 14
Joined: January 21st, 2008, 9:38 pm
Title: Do a barrel roll

Re: Vampirism Last Stand (Work In Progress)

Post by Itachiro »

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