Page 3 of 3

Re: [PURE JASS] Fai's CP 4.3c + -spawn

Posted: July 26th, 2010, 2:24 pm
by TheDarkKnight
-error detector, you won't kill your unit by typing
st.9999999999999 or hp.9999999999 etc, the detector
resets it back to Blizzard allowed maximum points.

can someone tell me where 2 find that trigger? I was serching for something like "if integer>99999 then do something to prevent unit dies"
But i can't get it.
help

Re: [PURE JASS] Fai's CP 4.3c + -spawn

Posted: July 26th, 2010, 3:16 pm
by YellowAfterlife

Code: Select all

function limit takes real n, real m, real x returns real
if n < m then
return m
elseif n > x then
return x
else
return n
endif
endfunction

For integers, just replace 'real's with 'integer's.
Basic math function...

Re: [PURE JASS] Fai's CP 4.3c + -spawn

Posted: July 26th, 2010, 3:19 pm
by TheDarkKnight
give me the function on Fai's cp ok? because I don't know the limits. So i need to see how Fai's did it.

Re: [PURE JASS] Fai's CP 4.3c + -spawn

Posted: July 31st, 2010, 6:18 am
by initialD
does this sP. command allow me to spawn some "complicated" item, such as the butterfly in DotA?

Re: [PURE JASS] Fai's CP 4.3c + -spawn

Posted: July 31st, 2010, 11:02 pm
by Ken
If it has an item ID, you can spawn it.

Re: [PURE JASS] Fai's CP 4.3c + -spawn

Posted: August 1st, 2010, 3:13 am
by initialD
TheDarkKnight wrote:give me the function on Fai's cp ok? because I don't know the limits. So i need to see how Fai's did it.

ops sorry, i didn't see this post last time. Since it's a fai's feature I wouldn't tell it to somebody who I barely know. But I assume you can easily figure out the stats limits by using "as.999999999" cmd in Fai's cp. For HP, hmm, you got to figure it out by yourself. 8)
FatherSpace wrote:If it has an item ID, you can spawn it.

All right, I've got it.