How do I change player object status attributes

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.

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


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.

Is there a way to do this without the code?

image
image
image
image

image


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


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


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums