ID:268774
 
im trying to make a Drop Money Code so if u drop a certain ammount of money the state changes i have about 10 diffrent gold states labled 1 to 10 and i was wondering if anyone could help me out
obj/gold/verb/Drop(var/dropping as num)
set src in usr.contents
if(!dropping) return
if(dropping == 1)
src.icon_state = "1"
src.Move(usr.loc)


Something like that.
In response to Dession
yeh but i have 10 DIFFRENT gold states to show that ur droping more money how would i make it so if i droped 100 gold state 2 would show and if i was droping 500 gold state 3 would show?
In response to Dession
>   if(ammount < 100)
> src.icon_state = "1"
> src.Move(usr.loc)
> if(ammount > 100)
> src.icon_state = "2"
> src.Move(usr.loc)




--Goz
In response to Dranzer_Solo
Just add more if()'s..You know how to do that right?
In response to Goz
Goz..He should know how to add if()'s himself for different things. If he doesn't he shouldn't be trying to make a game.
In response to Dession
thanks all