fire |
TONS of errors when it bumps something. BUT, when I move it to the(delsrc) no errors...
=/
It's not the process... I've taken it out, same problem. =/
ID:268594
Sep 4 2004, 9:19 pm
|
||
TONS of errors when it bumps something. BUT, when I move it to the(delsrc) no errors... =/ It's not the process... I've taken it out, same problem. =/ | ||
Doh.
_>Teh thank you, Death. Crap. ._. Unexpected errors: <font color = red>Level-Up Test.dm:388:error:A:undefined type Level-Up Test.dm:388:M :warning: variable defined but not used</font> Oi. ;_; Thanks Death | |
When you say skilldamage = blah, who does the var belong to and who are you calling skillattack() for? If it's the obj then make sure to put src's there or if it's the usr, then make sure to put M there.
| |
"A: undefined type"? Sounds like you made a typo when typing <code>atom/movable</code> ... because /atom/movable is always a defined type.
Once that error is fixed, the other one will probably go away too, because M will be counted as "used". | |
Skill process(Thanks Unknow Person :P)
And there's fire. :( The Atom error too. =/ Thanks for helping Death. (Credit goes to Unknown Person for most of the code) | |||
Your indentation is all over the place, and there are several other problems too:
1. The second-last line of the SkillDamage proc that you displayed is indented too far. Bring it into line with the lines before and after it. 2. Everything in the "fire" bit after the "var/mob/M = A" line is indented too far. Bring it into line with the "var/mob/M = A" line. 3. You're missing a closing bracket ) on the end of the "SkillDamage(mob/A,mob/B,dmg" line. 4. You misspelt "SkillDamage()" as "SlillDamage()" in the fire bit. I'm surprised you weren't getting many more compilation errors from that than you were. | |
You're doing a lot of things wrong
I dont know how you're moving fire but when you do, make sure to do this:
You nmay still be confused but feel free to ask | ||||
firespeed = 3
density = 1
icon_state = "zap"
Bump(atom/movable/A)
if(ismob(A))
var/mob/M = A
skilldamage = M.Int
skilldamage *= 1.3
SkillAttack()
del(src)