Original Source
- Original title: Is it possible to set actor HP directly, even to a variable?
- Original author: BrandyMoon
- Original date: July 3, 2019
- Source thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-set-actor-hp-directly-even-to-a-variable.110627/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support
Summary
I'm looking for a way to change HP based on a the specific suit/armor my character wears, which is decided by a variable determining which one they have equipped. That armor also has different states (Worn, new, damaged) which changes the variable amount as well. I'd like the HP to automatically be changed and updated with it depending on if you take it off or put it back on. This doesn't have anything to do with actual system equipment or armor since it's all handled by different variables. Is there...
Archived First Post
Is there a way to set HP to a variable in MV?
I've tried the simplest ways like
$gameActors.actor(1).hp = $gameVariables.value(22)
but it doesn't seem to work. There are obvious ways to add or subtract an amount to the actor's HP, but I don't want to add or minus, I want it precisely set to a number I choose.
Protected download
Is there any actual way to do this? I'm a little lost here.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...
