How do I change player object status attributes

archerqueen08
15 Jan 2018, 14:03

Hi I would like to change a player object status attribute after the player opens something but I can't figure out how. Like for example I want to change their house points to 10 or something. Help?


K.V.
15 Jan 2018, 15:33

Hello,

You could do that in the "After opening the object" script:

(This assumes the attribute of which you speak is player.housepoints, and that that attribute is an integer.)

image


archerqueen08
16 Jan 2018, 04:58

Ok thanks! Is there a way to do this without the code? I can't make heads or tails out of it, is there a block that can do this?


K.V.
16 Jan 2018, 05:10

Is there a way to do this without the code?

image
image
image
image

image


hegemonkhan
16 Jan 2018, 05:23

here's a step by step walkthrough guide on 'status attributes', creating your own demo game that you can play/study:

http://textadventures.co.uk/forum/quest/topic/5387/i-really-need-help#37375

ask if you need help with anything


archerqueen08
17 Jan 2018, 10:45

Wait, I think I did something wrong here? I set the key in the player tab to player.housepoints and tried it but it has no effect? I dunno why, housepoints shows up in the game panes when I test it but it doesn't set it to 10