How could I give people dice if they buy them from store [HELP]
#1

Im used to scripting now and its getting easier, but i dont know how to give people things. Like how would i give someone dice if they purchase them from the store? I want to use this for other things as well like cigars and gas cans
Reply
#2

they are not standard things that you "give" to them..
they are scripted things, like, a dice, is scripted as a command , /dice.
when the player does that command, the script checks if HasDice == 1.
if 1, then it makes a random number random(6);

This was just an example of the dice, but, what you basically have to do, is make a dialog, and add for example the dice in it.
When the player clicks on that/selects that, and has enough money, then set HasDice to 1

What i used was just a random variable, because i don't know what your saving system is.
Also I assume you already have some dialog knowledge.

If you need any help, just post, and i will try to help more
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)