ID:263866
 
Code:
mob
Arrancar
verb
mask()
set name = "Arrancar Mask"
set category = "Fighting"
if(usr.safe)
usr << "<b>You are in safe zone!"
return
if(usr.frozen)
return
if(usr.resting)
return
if(!usr.maskon)
usr.maskon = 1
usr.dir = SOUTH
usr.frozen = 1
new/obj/vaion(usr.loc)
sleep(7)
usr.frozen = 0
// if(usr.arrancarmask == "YammyMask")
// usr.overlays += 'YammyMask.dmi'
// if(usr.vaizardmask == "UlquiorraMask")
// usr.overlays += 'UlquiorraMask.dmi'
// if(usr.arrancarmask == "ShawlongMask")
// usr.overlays += 'ShawlongMask.dmi'
// if(usr.arrancarmask == "Deidoro")
// usr.overlays += 'Deidoro.dmi'
// if(usr.arrancarmask == "dordoniimask")
// usr.overlays += 'dordoniimask.dmi'
// if(usr.arrancarmask == "EdoradMask")
// usr.overlays += 'EdoradMask.dmi'
// if(usr.arrancarmask == "EdoradRelease")
// usr.overlays += 'EdoradRelease.dmi'
if(usr.mattack < 3000)
usr.attack += usr.mattack * 2
usr.defence += usr.mdefence * 1.6
goto ger
if(usr.mattack <= 6000)
usr.attack += usr.mattack * 3
usr.defence += usr.mdefence * 2.4
goto ger
if(usr.mattack > 150000)
usr.attack += usr.mattack * 3.7
usr.defence += usr.mdefence * 3
goto ger
ger
sleep(usr.masktime * 10)
if(usr)
usr.random = rand(5,9)
if(usr.random == 1)
usr.masktime += 1
usr.overlays -= 'YammyMask.dmi'
usr.overlays -= 'YammyMask.dmi'
usr.overlays -= 'UlquiorraMask.dmi'
usr.overlays -= 'UlquiorraMask.dmi'
usr.overlays -= 'ShawlongMask.dmi'
usr.overlays -= 'ShawlongMask.dmi'
usr.overlays -= 'Deidoro.dmi'
usr.overlays -= 'Deidoro.dmi'
usr.overlays -= 'EdoradMask.dmi'
usr.overlays -= 'EdoradMask.dmi'
usr.overlays -= 'EdoradRelease.dmi'
usr.overlays -= 'EdoradRelease.dmi'
usr.attack = usr.mattack
usr.defence = usr.mdefence
if(usr)
sleep(150)
usr.maskon = 0

// if(M.random == 1)
// M.arrancarmask = "YammyMask"
// if(M.random == 2)
// M.arrancarmask = "UlquiorraMask"
// if(M.random == 3)
// M.arrancarmask = "ShawlongMask"
// if(M.random == 4)
// M.arrancarmask = "Deidoro"
// if(M.random == 5)
// M.arrancarmask = "dordoniimask"
// if(M.random == 6)
// M.arrancarmask = "EdoradMask"
// if(M.random == 7)
// M.arrancarmask = "EdoradRelease"


Problem description:

Training.dm:746:error:M.random:undefined var
Training.dm:747:error:M.arrancarmask:undefined var
Training.dm:748:error:M.random:undefined var
Training.dm:749:error:M.arrancarmask:undefined var
Training.dm:750:error:M.random:undefined var
Training.dm:751:error:M.arrancarmask:undefined var
Training.dm:752:error:M.random:undefined var
Training.dm:753:error:M.arrancarmask:undefined var
Training.dm:754:error:M.random:undefined var
Training.dm:755:error:M.arrancarmask:undefined var
Training.dm:756:error:M.random:undefined var
Training.dm:757:error:M.arrancarmask:undefined var
Training.dm:758:error:M.random:undefined var
Training.dm:759:error:M.arrancarmask:undefined var
Training.dm:696:error:usr.arrancarmask:undefined var
Training.dm:700:error:usr.arrancarmask:undefined var
Training.dm:702:error:usr.arrancarmask:undefined var
Training.dm:704:error:usr.arrancarmask:undefined var
Training.dm:706:error:usr.arrancarmask:undefined var
Training.dm:708:error:usr.arrancarmask:undefined var

This is the EXACT error. and the EXACT code
What is M? If M is not something that has those variables assigned to it, then that is why those errors are occurring.
In response to Pyro_dragons
what? i have what M should be if i get what your stating.

// M.random = rand(1,8)
// if(M.random == 1)
// M.arrancarmask = "YammyMask"

i have
if
m.random = 1 i want it to be
m.arrancarmask = "yammymask"
In response to King killer 113711
No, I'm asking what M is defined as. What is M?
In response to Pyro_dragons
M would be the mask you get at random..i might have found out that im stupid tho. i have m.random for vizardmask and arrancarmask would that cause an error?

(another point in code)

M.random = rand(1,3)
if(M.random == 1)
M.vaizardmask = "Ichigo"
if(M.random == 2)
M.vaizardmask = "Hiyori"
if(M.random == 3)
M.vaizardmask = "Shinji"
Change the first M.random to var/random, then every other M.random to just random.
In response to Garthor
Ok, I did that. What about the M.arrancarmask do i change them to just arrancarrmask? or do i keep them?

& now I have These Errors:
Mobs.dm:486:error:M.arrancarmask:undefined var
Mobs.dm:488:error:M.arrancarmask:undefined var
Mobs.dm:490:error:M.arrancarmask:undefined var
Mobs.dm:492:error:M.arrancarmask:undefined var
Mobs.dm:494:error:M.arrancarmask:undefined var
Mobs.dm:496:error:M.arrancarmask:undefined var
Mobs.dm:498:error:M.arrancarmask:undefined var
Mobs.dm:500:error:M.arrancarmask:undefined var
Mobs.dm:485:if :warning: if statement has no effect
Mobs.dm:489:if :warning: if statement has no effect
Mobs.dm:491:if :warning: if statement has no effect
Mobs.dm:493:if :warning: if statement has no effect
Mobs.dm:495:if :warning: if statement has no effect
Mobs.dm:497:if :warning: if statement has no effect
Mobs.dm:499:if :warning: if statement has no effect
Training.dm:696:error:usr.arrancarmask:undefined var
Training.dm:698:error:usr.arrancarmask:undefined var
Training.dm:700:error:usr.arrancarmask:undefined var
Training.dm:702:error:usr.arrancarmask:undefined var
Training.dm:704:error:usr.arrancarmask:undefined var
Training.dm:706:error:usr.arrancarmask:undefined var
Training.dm:708:error:usr.arrancarmask:undefined var
Training.dm:710:error:usr.arrancarmask:undefined var
(bit Spammish sorry)
In response to King killer 113711
Where do you define M?

For example:

mob
creating_character
icon = 'human.dmi'
icon_state = "move"
layer = 1
var
str = 1

Here I defined a strength variable for a mob.

Now I am going to write a proc to use this variable to attack:
mob
proc
Attack(mob/M)
if(M.str > src.str)
view(6)<<"[M] beats [src]!"
else
view(6)<<"[src] beats [M]!"


In this proc, M is obviously a mob. I am finding out if M has a higher str variable than the src of the proc.

What you are being asked, is where is M defined?

I still would like some help please?
In response to King killer 113711
refer to the DM guide on variables.

Now I could be cruel and just leave it at that, but you may want to have this somewhere.

mob/var/arrancarmask


If you don't have that then that is your problem.
In response to SS10trunks
yes i have that -.- im not that stupid