obj gold icon = 'person.dmi' icon_state = "gold" var amount verb get() //obj/gold/verb/get() set src in view(1) usr << "You pick up [amount] gold." usr.wealth += amount del(src)
Problem description:
1.I got most of this from a tutorial, and on the end it says; "Things you can try doing now:
- Make a var for wealth"
This is where i'm stuck, because i have no clue at all where to begin..
obj Tree icon = 'person.dmi' icon_state = "tree" density = 1 verb/kick() usr.lvlcheck() usr.exp+=rand(1,2)
2. How do i make a level up system from scratch?
Gold;
I don't think your defining the var/amount, if i'm not mistaken your leaving the var blank. Wich would mean that the player wouldn't gain any amount of money.
--Chwgt