Saving the enemies hp

Started by Shadonking, February 17, 2009, 11:41:58 am

Previous topic - Next topic

Shadonking

I need to beable to save a certain monsters hp as a variable then when i go to another map i can tell an identical enemy on the map to have the same hp as what that variable says.

im using blizz abs.

if you need more info just ask.







Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

nathmatt

found it in the manual under utilities
$BlizzABS.enemy_change_hp(event_id, operation, type, operand, allow_kill)
event_id : either an event ID on the map (a number) or type TROOP to target all enemies on the map or @SELF which indicates at the calling event 
operation : either INCREASE or DECREASE
type : either CONSTANT or VARIABLE
operand : if type is set to CONSTANT, this value represents the constant number to operate with, if type is set to VARIABLE this number represents the variable ID
allow_kill : either KILL or NO_KILL
change : either ADD or REMOVE
state_id : the ID of the status effect to operate with
enemy_id : the ID number of the enemy to operate with
party_position : either the position of the actor in the party (starts from 0!) or PARTY to target all actors in the party
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Shadonking

thanks, so thats how to change an enemies hp using a variable but how do you cange the variable to the number of the enemies hp.





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

nathmatt

try $game_variables = $BlizzABS.enemy_hp(event id)
not saying it will work just guessing
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


nathmatt

Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Shadonking

February 18, 2009, 10:22:52 am #5 Last Edit: March 06, 2009, 05:15:43 pm by Shadonking
just checking it now

edit

it didnt work.


it doesnt say which variable to store the hp and it has a syntax error.

edit

please help, it will be very useful

edit

bump





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Blizzard

I thought I posted this in another topic. I'll be sure to include that kind of syntax in a future release. I left it out this time due to some complications. Anyway, you can use this in the meanwhile:

$game_map.events[EVENT_ID].battler.hp


Make sure it's a battler and that it actually exists.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

thanks blizz, i'll try it out later





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0