...how do i make it so you HAVE to save 20$ to be able to buy a 'bunny2' ? i tried the.. if(usr.cash >=20) thing but it said proc not alowed inside another proc or something. Thank-Q!
mob
bunny2
var/Owner
verb
Adopt()
if(src.Owner)
usr << "This has an owner!"
else
set src in oview(1)
usr.cash = (usr.cash - 20)
src.Owner = usr.ckey
usr.pet = src //make src as the users pet.
usr << "You adopted a bunny2!"
Check()
set src in oview()
if(src.Owner)
usr << "This pet belongs to [src.Owner]."
else
usr << "This pet is wild."
icon = 'pet.dmi'
icon_state = "bunny2"
Copyright © 2025 BYOND Software.
All rights reserved.
Changes in bold.