First Script!
Moderator: Cheaters
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Eh, it would be more realistic.. But like I said, I don't know where to start on damage adding..
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
A few ways to do that
Code: Select all
SetUnitState(whichUnit,UNIT_STATE_LIFE,GetUnitState(whichUnit,UNIT_STATE_LIFE)-DamageAmount)
Use a unit:
call UnitDamagePoint(whichUnit,0,radius,Point-x-value,Point-y-value,DamageAmount,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
ATTACK_TYPE_CHAOS can be replaced by:
ATTACK_TYPE_HERO
ATTACK_TYPE_MAGIC
ATTACK_TYPE_MELEE
ATTACK_TYPE_NORMAL
ATTACK_TYPE_PIERCE
ATTACK_TYPE_SIEGE
Attack types used in this function are calculated the same as if the unit really did attack.
This means that if the armortype reduces pierce by 50% and the attacktype is pierce, the damage will be reduced by 50%
UnitDamageTarget(whichUnit,whichTarget,amount,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
Same as the first one
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
MMmmk, I'll see what I come up with.. -.-
Wait, wouldn't I have to pick every unit that comes within what.. zomg.. ... the 100 aoe thingy with each frost...
Wait, wouldn't I have to pick every unit that comes within what.. zomg.. ... the 100 aoe thingy with each frost...
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Zomg wdf.. I signed up, and when try to sign in, gives me error about 'Windows Live ID incorrect/doesn't exist' ..
Here's where I signed up at.. -.-
http://im.live.com/Messenger/IM/Join/
Here's where I signed up at.. -.-
http://im.live.com/Messenger/IM/Join/
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer