how to make Hp = Gold help

Alexx12

Warper
Member
Joined
Feb 22, 2016
Messages
1
Reaction score
0
First Language
English
Primarily Uses
I working on a game where the player Hp is his gold I trying to set it where if the player get gold they gain hp and if the loss Hp they loss gold I would lik some help


please.
 

WhiteW

The Murderous Clown
Veteran
Joined
Oct 16, 2016
Messages
170
Reaction score
127
First Language
EN/PT
Primarily Uses
RMMV
You could use a variable aside from HP or Gold for that and when it reaches 0 it triggers game over.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
you can do that by eventing with mathematics and control variable - just have a control variable load the available gold when it changes, calculate how much it changed and apply a change HP command for the difference. And the other way for damage (or using damage coding to reduce the gold in the damage formula directly).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top