How to add -armor and -damage?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

How to add -armor and -damage?

Post by initialD »

-armor xx
-damage xx-yy
I never see those cheat commands before so I wonder if that is even possible.
If those commands are possible, could someone show me how to do it in JASS? thanks.
User avatar
CrackUps
Member
Posts: 96
Joined: October 6th, 2007, 12:21 am

Re: How to add -armor and -damage?

Post by CrackUps »

I think the reason you dont see it is because damage and armor directly relate to your primary attribute and agility, I mean with more agi you gain armor and more of your primary attribute gives more dmg and i think thats the only way
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: How to add -armor and -damage?

Post by GeorgeMots »

CrackUps wrote:I think the reason you dont see it is because damage and armor directly relate to your primary attribute and agility, I mean with more agi you gain armor and more of your primary attribute gives more dmg and i think thats the only way
That is correct but i cant remember whether xantans' cheat pack has those commands, it been a month since i last used it.
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: How to add -armor and -damage?

Post by Xantan »

No. I don't have them...

WEU allows for use of those types of commands if you enable 'advanced' triggers.

which I assume would make use of abilities/upgrades to specifically upgrade the hp/armor/damage of the unit(s).

In other words, I don't know how to do it with only triggers, I don't think its possible.

I know Aero explained a little of this as well, somewhere else...
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: How to add -armor and -damage?

Post by initialD »

I guess so. If it is possible for JASS someone must have already made it somewhere here.
Unless when command is typed , an additional spell is added to that hero. It will take a bit effor in JASS. Probably when someone has time he will make it. lol
Thanks for imformations guys.
Durchdringen
Honorary wc3edit.net Traitor
Posts: 468
Joined: December 10th, 2007, 10:50 pm
Title: The Professional
Location: USA

Re: How to add -armor and -damage?

Post by Durchdringen »

You may be able to add a buff to a unit, then make that buff negate a players dmg, armor, etc. I remember doing stuff like that in WE but it's been a while ago. So for like a cheat, you would have to insert a command and select a unit, and the selected unit would have that buff on them for lets say 30 secs or so.
Do you support Durchdringen? If so, add the spoiler to your sig. Durch cares for you, so show your support for Durch!
Spoiler:
(broken image) Thanks for the support!
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: How to add -armor and -damage?

Post by initialD »

If -dmg or -armor commands are able to be made in pure JASS, could anyone here make it?
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: How to add -armor and -damage?

Post by weirdone2 »

Hmm I thought I already responded to this, is their another thread on this or something? -.-

Anyway in my cheatpack are the cmds -deca and -inca which decrease and increase dmg, you just won't see any actual values change. It's even demonstrated in the little example pic I put up with my cheatpack where the peasant can't die to the wyverns attacking him. ;) That same peas also took out dozens of buildings in 1 hit. Peasant ownage anyone? ^^
Wreked
Member
Posts: 87
Joined: April 29th, 2007, 8:10 pm

Re: How to add -armor and -damage?

Post by Wreked »

haha nice weirdone2 but for any of us here trying to learn would you mind posting the code on how you did it? I am intruiged to find out how :D
Peace yall hit me up at Mamou115[w3e] on US East!
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: How to add -armor and -damage?

Post by weirdone2 »

Well all I did was made it so that after you put in the cmd when ever one of your men atks some1 a trigger will also dmg them by how much you specified, and for the deca one I just made it so when you get hit you heal, so that it looks like your not taking that much dmg if your useing it steathly like only heal 1-3 dmg that way they won't really notice if for say you were playing dota.

As for the code I think this is will give you the gist of it:
If you want a fuller look at it just head over to my cheatpack ;)

Code: Select all

function xcv takes player p,string s,integer i returns nothing
local integer z=GetPlayerId(p)
local trigger t=CreateTrigger()
local triggeraction zta=TriggerAddAction(t,function xrs)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_ATTACKED,null)
set zzdz[z+60]=i
call xwX(p,s,false)
call DisableTrigger(t)
call TriggerRemoveAction(t,zta)
call DestroyTrigger(t)
set zzdz[z+60]=0
set t=null
set zta=null
endfunction
function xyu takes player p,string s,integer i returns nothing
local integer z=GetPlayerId(p)
local trigger t=CreateTrigger()
local triggeraction zta=TriggerAddAction(t,function xtu)
call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_UNIT_ATTACKED)
set zzdz[z+72]=i
set zzaz[z+60]=Player(z)
call xwX(p,s,false)
call DisableTrigger(t)
call TriggerRemoveAction(t,zta)
call DestroyTrigger(t)
set zzdz[z+72]=0
set zzaz[z+60]=null
set t=null
set zta=null
endfunction
function xtu takes nothing returns nothing
local integer i=0
local unit u=GetTriggerUnit()
loop
exitwhen i>11
if IsUnitOwnedByPlayer(GetAttacker(),zzaz[i+60])then
call SetWidgetLife(u,GetWidgetLife(u)-zzdz[i+72])
endif
set i=i+1
endloop
set u=null
endfunction
function xrs takes nothing returns nothing
local unit u=GetTriggerUnit()
local integer i=GetPlayerId(GetTriggerPlayer())
call SetWidgetLife(u,GetWidgetLife(u)+zzdz[i+60])
set u=null
endfunction

elseif zyb=="-deca"then
call xcv(zzo,"-noda",S2I(zSt))
elseif zyb=="-inca"then
call xyu(zzo,"-noia",S2I(zSt))