Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
kaninersynger

Scripting help for in combat character changing

Question

Been all over the net to see if i could find anything like this but my search have left me emtyhanded. so i have to ask for some aid on this, what i want is for my battlers to change when they reach a serten hp percentage exsample, at say 25% hp the actor changes to a wonded image and whould turn back to normal as soon as the actors hp gos over 25% again.

im using the standard combat system in RMXP.

 

whould be thankfull if there are anyone here who got some ideas or a solution

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Found a way out to change the actors graphic at a percentage, but left with the problem that it wont change back if it gos over again.

 

what iv found so far:

Troops tab under database, and the condition there, you can sett it to act if the actor [name] gos below a serten percentage but this seems to get the character stuck in that form for the rest of the battle.

iv tryed to control it with switches, variabels and a condition branch but seems like they dont work in combat.

 

anyone got any ideas how i could get this to work?

 

info bump

Share this post


Link to post
Share on other sites
  • 0

In every map put an auto run event like this:

@>Conditional Branch: Variable[number]==100

@>Change Actor Graphic: [Actor], Graphic,0,battler graphic to change it to,0

: End Branch

Share this post


Link to post
Share on other sites
  • 0

In every map put an auto run event like this:

@>Conditional Branch: Variable[number]==100

@>Change Actor Graphic: [Actor], Graphic,0,battler graphic to change it to,0

: End Branch

 

 

if its placed on the map will it still afect the battle? and im not sure what your trying to get out from that command there.

the variable i guess whoul represent the hp, but it wont be actuly br linked the the players hp, and thats what im looking for.

 

if you dont mind, maybe you could explain it a bit more if you got the time

Share this post


Link to post
Share on other sites
  • 0
Troops tab under database, and the condition there, you can sett it to act if the actor [name] gos below a serten percentage but this seems to get the character stuck in that form for the rest of the battle.

 

Did you add anything to make them change back when they're above that percentage?

Share this post


Link to post
Share on other sites
  • 0

The event (if your using it on the map or in the troop thing) should look something like this:

@> Loop

@> Control Variable(Number) == Actor(ID)'s HP

@> Conditional Branch: If Variable(Number) = less than (Input Number)

--@> Change Actor Graphics(Battler and such)

@>else

--@> Change Actor Graphics(The original one)

@> Branch End

@> Wait 1 Frame (so it doesnt freeze up the game)

@> Repeat Above

 

Oh, and he was stuck in that form, Kaninersynger, because it didn't loop.

Share this post


Link to post
Share on other sites
  • 0

Exactly how Tom said it except minus the loop and wait and instead of using it on every map try using a Common Event so its completely global and it will trim your work down by 99%.

 

Not sure but i think common events work in battle also.

actorhpbattle.png

Someone smart might be able to figure out the % thing because im very bad with %'s.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...