Help - Search - Members - Calendar
Full Version: Enemys on Map
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
Draven
Hey ,

How can i get the HP /SP etc. from an Enemy created in the Database put in Variables in an Event for a simpel event KS ?

Thanks

Draven

Kain_Omen
I believe that you are going to have to re-write your question because it's hard to understand what you are trying to ask.

Would be much appreciated.
PassedEdge
What I believe you're asking is how to take an enemys hp/mp and turn it into a variable so you can use it in an event?

I didn't test it, but I think this should work. make a new event, choose control variables, single and name it something like "enemy hp" or "enemy mp". After that under "operation" you would choose "set" and under "operand" you would choose "enemy". to the right of "enemy" select the name of the enemy and to the right of that change it to "hp" or "mp"

That may have been a bit difficult to follow and I'm not even sure if that's what you were asking about, but I can also attach a screenshot to help out.
BasharTeg6
QUOTE (PassedEdge @ Feb 6 2010, 08:35 PM) *
What I believe you're asking is how to take an enemys hp/mp and turn it into a variable so you can use it in an event?

I didn't test it, but I think this should work. make a new event, choose control variables, single and name it something like "enemy hp" or "enemy mp". After that under "operation" you would choose "set" and under "operand" you would choose "enemy". to the right of "enemy" select the name of the enemy and to the right of that change it to "hp" or "mp"

That may have been a bit difficult to follow and I'm not even sure if that's what you were asking about, but I can also attach a screenshot to help out.


I think this will only work if used in a battle.

You'll need to extract the information from the database using script and put it into a variable. This is beyond my ability, though.
Draven
Thanks i find a Way...

Script: $game_variables[ID] = $data_enemies[ID].maxhp


LG

Draven
BasharTeg6
Hmmm... when I try that I get an error. It doesn't seem to recognize '.maxhp'

Could be a script conflict though. huh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.