ID:270317
 
hey i cant figure out what my problem is i mean i tried everything ill put my coding for my icon game and it still didnt it said that there was an error around the mob area it kinda freaky kuze when i do a text-based game it work fine if i have an error please post it on the forum and ill try it thanks o and here is my coding:
world
"test game.dm"
mob
text="1"
Login()
world << "[usr] logs in"
Loc=Locate(1,1,1)
Var
money=0
Turf
grass
icon="3"
density=0
opacoty=0
rock
icon="4"
density=0
opacity=0
water
icon="2"
density=99
opacity=99
Mob/Verb
say (t as text)
world >> "[usr] says\"[t]\""
grab_money
if[!usr.money)
usr >> "You spend some money"
usr.money-=1
else
usr >> "You dont have any money to spend"
usr >> "You become a hobo because you dont have any money to spend on food. " world >>"Someone just became a hobo because he didnt have any money and now everyone gets to laugh at him" usr >> "del [usr"
thanks ill appreciate if u can figure out my problem
First off you the dm tags to show you code ,second you have not really said what your problem is. And thrid use the English language i have no idea what "kuze" is

and i think you might want to change

Var
money = 0


to

var
money = 0
In response to A.T.H.K
Most of your mobs, verbs and turf paths are capital. No caps.

var
mob
turf
verb<dm>

Do not capitalize. Only ones that should be are Login(), Logout(), Move(), etc. Look em up in references.
world
name="test game.dm"
mob
text="1"
Login()
world << "[usr] logs in"
src.loc=locate(1,1,1)
var
money=0
turf
grass
icon='3.dmi'
density=0
opacity=0
rock
icon='4.dmi'
density=0
opacity=0
water
icon='2.dmi'
density=1
opacity=1
mob/verb
say(t as text)
world << "[usr] says\"[t]\""
grab_money()
if(!usr.money)
usr << "You spend some money"
usr.money-=1
else
usr << "You dont have any money to spend"
usr << "You become a hobo because you dont have any money to spend on food. "
world << "Someone just became a hobo because he didnt have any money and now everyone gets to laugh at him"
del usr

You had alot of capitalization and punctuation errors.
In response to Karrigo
There are a couple other things-

He should not use usr in mob/Login().
He forgot to call the parent proc in mob/Login().
Setting grass and rock turfs to have 0 opacity and density is redundant as those are the default settings.
The if() statement on the grab_money verb is backwards, he needs to remove the ! operator.