How do you make currency?

HyperMasenko
14 Jul 2013, 22:34
How do you make money and such for buying things from stores attach to your character?

I am working on an RPG game, if you want to know; thanks!

HegemonKhan
15 Jul 2013, 01:50
see your other currency thread for my post.

to move stuff around:

Add a script -> Varariables -> Set a variable or attribute -> (see below)
~OR~
Add a script -> Objects (I think) -> Move Object -> (you can hopefully figure this out)

in code, it looks like this:

object.parent=new_parent

for example:

wooden_sword.parent=shop // the wooden sword is an Object in the Room Object called "shop"
wooden_sword.parent=player // the wooden sword Object is now (got moved to) in the player's inventory as one of the player's Objects.