• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Drawing two variables as a single number/added up?

N

NateTheGreat

Guest
I'm looking for a way to add two variables (more specifically two ds_map items).

Something like
Code:
(map[? player+"_hp"]) + (map[? player+"_hp_bonus"])
 
B

bojack29

Guest
Exactly like that. Assuming both entries are real values.
Code:
val = map[? "hp"] + map[? "otherHp"];
 
N

NateTheGreat

Guest
That's odd, last time I tried it that way it didn't work. I'll try it again!
 
Top