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

Re: Cost HP for spell?

Post by Frag_Masta »

thats ok all make mistakes 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 »

Lol sorry bout that..this one should work...I tested it and messed with the value, and it decreased different amounts each time, but steady with the same max mana..which should be whats happening..Just a slight edit..had the wrong one the first time try which explains the wait lol.

Code: Select all

Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) - ((Max mana of (Casting unit)) x 0.07))
Image
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Cost HP for spell?

Post by haxorico »

Syre wrote:Lol sorry bout that..this one should work...I tested it and messed with the value, and it decreased different amounts each time, but steady with the same max mana..which should be whats happening..Just a slight edit..had the wrong one the first time try which explains the wait lol.

Code: Select all

Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) - ((Max mana of (Casting unit)) x 0.07))
...
so if a unit has 100 mana.

wont it make the casting unit ALLWAYS have 93mana?
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Cost HP for spell?

Post by Syre »

No. Thats the mistake i made when i first tried that. If it said

Code: Select all

Unit - Set mana of (Casting unit) to ((Max Mana of (Casting unit)) - ((Max mana of (Casting unit)) x 0.07))
That would set the mana to 93/100 each time. However, since i used just mana

Code: Select all

Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) - ((Max mana of (Casting unit)) x 0.07))
it takes the Current mana of the caster

Code: Select all

((Mana of (Casting unit))
, and than minuses max mana x .07

Code: Select all

((Max mana of (Casting unit)) x 0.07))
. So pretty much..if a unit has 100 max mana and has 90 currently, when using the spell he'd have 83 after. So the equation is 90(current)-(100(max)*.07(percent lost))=83(result)
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 »

=D

Much thanks

EDIT: i think i made a mistake anyone find it?

Code: Select all

Unit - A unit Begins casting an ability

(Ability being cast) Equal to Emanation of Life 

Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) - ((Max mana of (Casting unit)) x 0.07))%
Unit - Set life of (Casting unit) to ((Life of (Casting unit)) - ((Max life of (Casting unit)) x 0.07))%
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