BABS HUD that turns automatically off if no enemies are on the map.

Started by Holyrapid, September 12, 2010, 04:57:11 am

Previous topic - Next topic

Holyrapid

I'd like to add into may came a feauture that turns the BABS >HUD<  off when no enemies are present on the map and then back on when there are. This can be done with a few script calls in a common event.  And, that's where you guys come in. What script calls do i need?

nathmatt

$game_map.battlers.size
gives the number of enemies on the map
$game_system.hud
controls whether the hud is on or off
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


element

Doesn't he look more like enemys in visible range then on the map?
Cuz then only the hud will turn off if all enemys were killed.

Maybe use Blizz-ABSeal range?

nathmatt

in that case
$game_map.battlers_in_range.size
the number of enemies in range but these are all disable abs modes
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


Holyrapid

So, if i i.e put
$game_map.battlers_in_range.5
It would check if enemies are within a five square radius?

nathmatt

no because battlers_in_range is an array of the enemies in Blizz-ABSeal range if you want to change that you would have to change the range in the config

or check out this link because enemies are modified events http://forum.chaos-project.com/index.php/topic,79.0.html
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


Holyrapid

Hmm, i think i've got some sort of an idea now. I'll test and tell you then...

Ryex

$game_system.hud = $game_map.battlers_in_range.size > 0

that is basically what you have to do
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />