Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: reddevil on February 03, 2008, 11:48:03 pm

Title: [RESOLVED] problem with Blizz-ABS
Post by: reddevil on February 03, 2008, 11:48:03 pm
when i have an enemy that activates with a switch and i use a battle skill near it comes up with the following error. 
script 'abs' line 6983: nomethoderror occurred.
undefined method 'color' for nil:nilclass

so is there any way to have enemies that can be turned on or not?
Title: Re: problem with Blizz-ABS
Post by: Blizzard on February 04, 2008, 05:41:35 am
Either you are using an older version or you haven't put the 2 script parts into 2 seperate slots. That doesn't mean that the problem will be solved, but I can't help you, because there is no "line 6983" in either of the 2 parts.
Title: Re: problem with Blizz-ABS
Post by: reddevil on February 04, 2008, 12:42:14 pm
i'm using 1.73
Title: Re: problem with Blizz-ABS
Post by: reddevil on February 04, 2008, 01:38:00 pm
ok fixed my problem. i had to turn ABSEAL_AUTOKILL  to true
Title: Re: problem with Blizz-ABS
Post by: doskearn on May 23, 2008, 06:08:58 pm
I'm having the same problem, except ABSEAL_AUTOKILL is already on TRUE so that can't solve it.

I'm using Blizz ABS 1.98, I've got the three sections of the script in three different slots, so my scripts look like Scene_Debug // ABS1 // ABS2 // ABS3 // Main.
My error message is:

Script 'ABS3' line 3658: NoMethodError occurred.
undefined method 'color' for nil:NilClass

although sometimes its line 3661 instead.  I've set up the enemies so that when a switch gets triggered, they appear.  However, if an untriggered enemy is within range when I try and use a skill, it errors.

Any ideas?
Title: Re: problem with Blizz-ABS
Post by: Aqua on May 23, 2008, 06:48:36 pm
Instead of having the \e[X] in the event name of the monsters with the switches, try having it so when the switch is on, its process is a script:

$game_map.rename_event(EVENT_ID, 'NEW_NAME')


Here's the manual reference:
Spoiler: ShowHide
3.2.11. Renaming events
In Blizz-ABS you can rename events during the game and apply different behaviour with
just one command. To rename an event, simply use a "Call Script" Event Command wih the
following syntax:
$game_map.rename_event(EVENT_ID, 'NEW_NAME')
EVENT_ID is the ID of the event that should be renamed, NEW_NAME is the new name of
the event which's effect will be applied to the event immediately. Keep in mind that you
have to use \\ (double backslash) if you want \ (backslash) to appear in the event's name.
i.e. suddenly turnind an event into an enemy would need a new name looking like '\\e[45]'.
Keep in mind that those renamings are temporary and reset after you re-enter the map.
Title: Re: problem with Blizz-ABS
Post by: doskearn on May 23, 2008, 07:30:49 pm
Thanks for the info, I've read the manual like 30 times but I forgot about that part.
I keep getting a "SyntaxError occurred while running the script" message (I'm kinda new to the Blizz-ABS and RPGXP in general .. so bear with me please)

I changed the enemy being switched on to the new event being switched on.  I've got parallel process selected and the default name "EV009." 
The only thing under List of Event Commands is:
$game_map.rename_event(009,\\e[036])

Basically, what should I put in for "EVENT_ID" if 'NEW_NAME' is supposed to be the enemy identifier.

Thanks for the patience.
Title: Re: problem with Blizz-ABS
Post by: Aqua on May 23, 2008, 07:34:09 pm
Add a space after the comma (009,\\e[036])
Title: Re: problem with Blizz-ABS
Post by: Blizzard on May 24, 2008, 08:15:38 am
Quote from: Aqua on May 23, 2008, 07:34:09 pm
Add a space after the comma (009,\\e[036])

And without the leading zeroes. xD

(9,\\e[36])

BTW, that error with "color" that you got was just reported today by somebody else as well. All you have to do is add
return if @sprite == nil

just below the line that says:
def update_select

I'll fix that fully in the next release, but this should make it work for the time being. You are using invisible enemies, right?
Title: Re: problem with Blizz-ABS
Post by: doskearn on May 27, 2008, 01:01:34 pm
Thanks guys, I can't get the script to work for some reason, but the @sprite == nil works fine.  I can still target the mobs not yet triggered, but for now its fine.