ID:266390
 
I want to make a GM verb that you can take away money.I tried but it didn't work.if you know how to do it,PLEASE tell me!Thanks alot!

-Kappa the Imp
Kappa the Imp wrote:
I want to make a GM verb that you can take away money.I tried but it didn't work.if you know how to do it,PLEASE tell me!Thanks alot!

-Kappa the Imp

are you useing s_admin V2 or what are you using for your GM stuff. Also what is the name of your money var?
In response to dbz73
The name of it is Money.And im using S_Admin v2
In response to Kappa the Imp
Oh,and its the newest S_Admin.
In response to Kappa the Imp
Just simply make a verb like so:
mob
verb
gm
Gm_Money_Take(mob/M as mob in world,N as num)
M.Money -= N


-Rcet

In response to Kappa the Imp
mob/GM/verb/take_money(mob/M as mob in world)
var/amount = input("How much do you want to take?")as num
if(M.money > 1)
M.money-=amount
else
usr<<"[M] has no money!"
</DM>
In response to Rcet
THANKS again Rcet!

-Kappa the Imp