Cost HP for spell?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Cost HP for spell?

Post by Frag_Masta »

i was wondering if someone would help me with some code

Code: Select all

You cast a spell on a target you lose 7% of your health i've done msot of it apart form the lose 7% of your health
need some guidance get back to me asap please
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Cost HP for spell?

Post by Lanaya »

should make a dummy to have the same spell
so like this (i didnt use WE)

Code: Select all

Event - unit casts a spell
Condition - % life of triggering unit greater than 7%
Actions - Unit - Cause Triggering unit to damage Triggering unit, dealing Max life of Triggering unit x 0.07 damage
Unit - Create 1 dummy at position of triggering unit
Unit - Order last created unit to undead - lich - frost nova targeted unit (if frost nova was your spell)
something like that.
Last edited by Lanaya on October 11th, 2009, 9:50 pm, edited 1 time in total.
Image
League of legends North America - Nietono
User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Re: Cost HP for spell?

Post by Frag_Masta »

Thanks :)
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Cost HP for spell?

Post by Lanaya »

oops, x 0.07, editted
Image
League of legends North America - Nietono
User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Re: Cost HP for spell?

Post by Frag_Masta »

got the same thing but for mana?

lol sorry to be a bother xD
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Cost HP for spell?

Post by Syre »

Code: Select all

Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) x 0.07)
Image
User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Re: Cost HP for spell?

Post by Frag_Masta »

It needs to Cost that mana not set it to the % and it's godda be total mana pool not if his a 50%
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Cost HP for spell?

Post by Syre »

Thats exactly what ive done ;x. You see..It takes whatever mana he has at the moment, and then lowers it by 7%, or whatever you want. So if hes got 543 mana when he casts, it will lower his mana by 38, leaving him with 505...which i thought thats what you wanted..its the same as Lanaya's just differently made since you cant really damage mana..
Last edited by Syre on October 12th, 2009, 4:07 am, edited 1 time in total.
Image
User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Re: Cost HP for spell?

Post by Frag_Masta »

yea thats what it thought i was making a little campaign and was wodneirng waht kinda of trigger it would be

the spell dose this when casted

Lowers HP by 7% of Total
Lowers MP by 7% of Total

and i didn't really know if/how to damage mana but is there anyway to?
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Cost HP for spell?

Post by Syre »

Gah, too late to delete post..err.what i said above..i dident think through atm cause i thought it was mana that he currently had..lemme see if i can fix it up ;x
Image