[RESOLVED] problem with Blizz-ABS

Started by reddevil, February 03, 2008, 11:48:03 pm

Previous topic - Next topic

reddevil

February 03, 2008, 11:48:03 pm Last Edit: July 25, 2008, 05:06:23 pm by Starrodkirby86
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?

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

reddevil


reddevil

ok fixed my problem. i had to turn ABSEAL_AUTOKILL  to true

doskearn

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?

Aqua

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.

doskearn

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.

Aqua

Add a space after the comma (009,\\e[036])

Blizzard

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?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

doskearn

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.