ID:141843
 
Code:
obj
kamikaze
tech=1
name="Kamikazi"
verb
Kamikaze()
set category = "Fighting"
set name = "Kamikazi"
view(10)<<"<b>[usr] laughs histerically..."()
BigExplosion()
BigUnderExplosion()
for(var/mob/M in range(6,usr))
M.powerlevel = 0
M.Die()


Problem description:loading Sagas.dme
loading Macro.dms
objs.dm:3013:error:M.powerlevel:undefined var
objs.dm:3014:error:M.Die:undefined var

Sagas.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)




replace M with usr.

Also since it's a for loop right there, you might want to indent.
Many Thanks =D
In response to PerfectGoku
also i need it to kill npcs too, so I though [m] was right?
In response to PerfectGoku
You don't need to replace M with usr. Just indent the 2 lines after the for loop and it should work fine.
You didn't indent correctly. Don't follow everyone else's advice; they misread your code by the looks of it. Look up the for() proc (the list one).

Also, you don't appear to know how to output messages correctly. What are the parenthesis after your text supposed to do, exactly?

Also, you don't need to put usr in range(). range(), oview(), view(), orange(), input(), alert(), etc. default to usr.
In response to Jeff8500
I just need it to kill all players in range...
In response to PerfectGoku
you do need to indent to target the mobs that you are searching for. If you don't then the for() loop is useless. Leaving it like it is just looks up mobs but doesn't do anything with them. The error tells you that because the var that you defined with the var/mob/M only refers to things indented under it. If you indent then your errors will go away.