ID:263884
 
Code:
mob/World_Map
SoulA
name = "{NPC}Soul"
icon='base.dmi'
icon_state=""
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(1)
set category = "NPC's"
if(usr.race == "Shinigami")//here
if(usr.level >= 5000)
if(usr.talked = 0)
usr.talked = 1
usr << "<b>You Have just Saved this soul."
usr.mattack += 1000
usr.attack += 1000
usr.defence += 1000
usr.mdefence += 1000
usr.mhealth += 1000
usr.mrei += 1000
sleep(1500)
usr.talked = 0

mob/World_Map
SoulB
name = "{NPC}Soul"
icon='base.dmi'
icon_state=""
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(1)
set category = "NPC's"
if(usr.race == "Hollow")//here
if(usr.level >= 5000)
if(usr.talked = 0)
usr.talked = 1
usr << "<b>You Have just Saved this soul."
usr.mattack += 1000
usr.attack += 1000
usr.defence += 1000
usr.mdefence += 1000
usr.mhealth += 1000
usr.mrei += 1000
sleep(1500)
usr.talked = 0


Problem description:

Mobs.dm:905:error::invalid expression
Mobs.dm:930:error::invalid expression

Marked with HERE

1. I'm still new to coding and I'm just wondering how I would go about solving this error. Thanks in advance for the help.
You have some major indentation problems. I suggest reading the guide.
In response to Garthor
There's no indentation errors. So, I don't believe I have any.
In response to CK Productions
if(usr.talked = 0)

This line here needs to be == not =. Also you need to indent everything under this line.
In response to Pyro_dragons
he also has the fact that he has set category = "NPC's" twice under both of them, delete the one after the ... set src in oview(1)
In response to Superbike32
Mobs.dm:903:error:oview:undefined proc
Mobs.dm:927:error:oview:undefined proc
Mobs.dm:904:error::invalid expression
Mobs.dm:928:error::invalid expression

Since the code is practically the same for both ill point out error on one.

mob/World_Map
SoulB
name = "{NPC}Soul"
icon='base.dmi'
icon_state=""
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(1)//here
if(usr.race == "Hollow")//here
if(usr.level >= 5000)
if(usr.talked == 0)
usr.talked = 1
usr << "<b>You Have just Saved this soul."
usr.mattack += 1000
usr.attack += 1000
usr.defence += 1000
usr.mdefence += 1000
usr.mhealth += 1000
usr.mrei += 1000
sleep(1500)
usr.talked = 0
In response to CK Productions
yeah, my bad, move the set category = "whatever" below the set src in oview(1)

also, it doesnt seem the the race variable is defined, maybe it is but its not under the word mob, then tabbed once, just having it used there doesnt define it.
In response to Superbike32
also, everything where it says the name of it, and icon and all that, should be tabbed an equal amount, so untab everything after name by one tabs each.
In response to Superbike32
Ok now I'm back to the same first 2 errors.
In response to Superbike32
Superbike32 wrote:
also, everything where it says the name of it, and icon and all that, should be tabbed an equal amount, so untab everything after name by one tabs each.

Uhm,.. that gave me a huge spam of errors..and I don't think it should be like that..so i undid that..
In response to CK Productions
no, the bottom part where you delared it where it says name = "wahetever it is"
and not the name up top where it says all the stuff.
In response to Superbike32
What?
a tip man when

if(usr.talked = 0)//the errorr should be here

try this:
if(!usr.talked)


its simple

if(usr.talked = 0)//here should be the second errorr

try this

if(!usr.talked)


tell me if that works for you

...:::Pirata Inmortal:::...
In response to Pirata Inmortal
No..It didn't work =[ its still giving me the same error. with the line above it.

                 if(usr.race == "Hollow")


That line right there.
In response to CK Productions
post here wat u have so far
In response to Pirata Inmortal
in your last example right after set category = "whatever or other" the if right after is tabbed once, the first if should be tabbed the same amount as the line before, and be at the exact spot the right as the set category.... so just that messed up tabbing messed it all up i think.

also after this line, name = "{NPC}SOUL" line may differ a little...anyways, everything after that seems to be tabbed more than it, de-tab everything else after that by 1 tabs or more till it lines up with that line name = "{NPC}SOUL" line may differ a little...
In response to Superbike32
AH.HA! got it..thanks to superbike(?) thanks a lot.
In response to CK Productions
I find it funny that you thank him when I immediately pointed out that your problem was your indentation, and a resource you could use to learn how to fix that mistake and not make that mistake again in the future.
In response to Garthor
Oh, I'm sorry. Thanks to you to. I guess i missed your post.
In response to CK Productions
wat about? if u didnt put if(usr.blah blah) or if(!usr.blah blah) u will keep getting the first two errorrs