Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Holyrapid on September 12, 2010, 04:57:11 am

Title: BABS HUD that turns automatically off if no enemies are on the map.
Post by: Holyrapid on September 12, 2010, 04:57:11 am
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?
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: nathmatt on September 12, 2010, 06:39:40 am
$game_map.battlers.size
gives the number of enemies on the map
$game_system.hud
controls whether the hud is on or off
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: element on September 12, 2010, 06:50:51 am
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?
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: nathmatt on September 12, 2010, 07:54:29 am
in that case
$game_map.battlers_in_range.size
the number of enemies in range but these are all disable abs modes
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: Holyrapid on September 12, 2010, 08:00:09 am
So, if i i.e put
$game_map.battlers_in_range.5
It would check if enemies are within a five square radius?
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: nathmatt on September 12, 2010, 08:42:07 am
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
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: Holyrapid on September 12, 2010, 08:57:35 am
Hmm, i think i've got some sort of an idea now. I'll test and tell you then...
Title: Re: BABS HUD that turns automatically off if no enemies are on the map.
Post by: Ryex on September 16, 2010, 03:35:32 am
$game_system.hud = $game_map.battlers_in_range.size > 0

that is basically what you have to do