NightDev Community Forums

Chat combat system?

well I remember that you could use an api to save information. but I forgot how to make commands with that.
my idea is this:
PD: api= life = 1200
1!duel $(touser) <message=(list of commands)>
2 !fight $(touser) <random number - API(touser)> <message=has done you x of damage, has his life left API>
3 !heal <random number + my API> <message=you have been cured RANDOM NUMBER of life “API”>
4!Rheal <message= your life points were reset to 1200> API=1200

Hey @C.I.A!

Sounds like you’ll have better luck writing your own API and then call it with Nightbot.