ID:167598
 
i am trying to make a code for my game that if u enter certain cheat codes that your stats are bootsted and stuff like that but i dont even have the siplest idea on how to do that can anyone help
mob
verb
MoneyCheat()
set name = "money cures ulcers"
set hidden = 1
src<<"Money cheat activated."
Money+=123454321

To use that cheat, you would type "money cures ulcers" into the red bar at the bottom and hit enter. If that's not what you meant, please specify.
In response to DarkCampainger

> mob
> verb
> money_cures_ulcers()
> set hidden = 1
> src<<"Money cheat activated."
> Money+=123454321


thats how i would do it, but his is slightly better, you can easliy change what you have too type in the red bar with his,
In response to Dmingmage
http://developer.byond.com/hub/Polaris8920/CheatCodesSystem


This cheat system is a bit more advanced...
In response to DivineO'peanut
DivineO'peanut wrote:
http://developer.byond.com/hub/Polaris8920/CheatCodesSystem


This cheat system is a bit more advanced...

Thats nice and all, but I think you should figure it out for yourself, like...

mob/verb/Cheat(cheats as text)
if(cheats<="lottsamoney")
usr.money+=12345678910
if(cheats<="Invincible")//thats original... lol
usr.hp+=12345678910

I find that system works really well.
In response to LordZyto
or you could have a normal say verb and have


findtext()

... i did my old one that way