Help - Search - Members - Calendar
Full Version: Warcraft III Help
Ambrosia Software Web Board > General Interest > Just Games
Warlord Mike
Hey, guys.

Well, this is kind of a development question, but it doesn't belong in the EV Developer's Corner, so I figured this is probably the best place to put it.

I'm making a WCIII Map that includes, among other things, custom heroes. It's based on the World War III Maps, but implements my own designs.

They're known as "Country Heroes," which are 10 unique and very powerful characters. One of them, the Middle-Eastern Zealot, is one I'm having problems with.

The thing is, whenever he attacks Undead or Demonic Units, I'm wanting his attacks to deal double damage to them. The way I have it set up is:

CODE
If ((attacking unit) equal to (Middle Eastern Zealot)) then (set target unit's life to ((target unit's life) - (damage taken))


Or something along those lines. Should that work, or do I need to do something different?

Thanks for your time.

Salutations and Regards,
Warlord Mike
Eji1700
I personally have no idea because i can't code for crap, however if you can't find help here there are map developer sites out there that will help you with that.
Captain Bob
Your semantics are correct, assuming this code is executed after damage is calculated, and that the set life function doesn't automatically nullify the normal damage taken. I can't speak to the syntax, since I haven't used the WIII editor.
prophile
You should make it apply the damage from the attacking unit so that the kills will apply to the damaging unit. Other than that, looks correct.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.