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
ID:270317
Mar 10 2006, 4:53 pm
|
|
In response to A.T.H.K
|
|
Most of your mobs, verbs and turf paths are capital. No caps.
var |
world 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. |
and i think you might want to change
to