Ello everyone, I'm new to the forums and new to RPG Maker. I'm using RPG Maker XP and got to an error I have no way of fixing, well that might be because I just got in to the whole scripting thing yesterday... However, I'm not that new to RPG Maker it self so I know bit more then less. My problem is the "Blizz-ABS Script 1.98 Part 2", I got almost everything to work, I can attack and kind of use magic (Well I can click on the keypad and it will make a sound but that's about it.), I cant rely defend yet (It just gives me an error)... and other things, but as I said, I can attack without the animations just the character going left to right. Anyways, my problem is "line 2938" in "ABS Part 2", when ever I attack I get "line 2938: NoMethodError occurred", but that's only if i land a hit, if i miss nothing happens, if I hit and the numbers show up showing how much damage was done then i get the error.
Please look at the spoiler to see what I have done to the 3 scripts.
There are no big changes, just minor changes, all the change I did was done on the first part of the ABS Script so I don't think you need to look at the other two just part two of the script since that is were I'm getting the error from.
Thank you,
Miroslav
Blizz-ABS Script 1.98 Part 1
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Blizz-ABS by Blizzard
# Version: 1.98
# Auto-Generated Configuration Script
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# PART 1
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Copy-paste this auto-generated script into the script slot instead of Part 1
# of the default Blizz-ABS script.
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#==============================================================================
# BlizzABS
#------------------------------------------------------------------------------
# This is the master control, configuration, utility and battle process
# module for Blizz-ABS.
#==============================================================================
module BlizzABS
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS::Control
#----------------------------------------------------------------------------
# This module provides in-game control configurations.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Control
CUSTOM_CONTROLS = true
DISABLE_DEFAULT = true
UP = "Key['Arrow Up']"
LEFT = "Key['Arrow Left']"
DOWN = "Key['Arrow Down']"
RIGHT = "Key['Arrow Right']"
PREVPAGE = "Key['Q']"
NEXTPAGE = "Key['E']"
CONFIRM = "Key['Enter']"
CANCEL = "Key['Esc']"
ATTACK = "Key['A']"
DEFEND = "Key['D']"
SKILL = "Key['S']"
ITEM = "Key['I']"
SELECT = "Key['O']"
HUD = "Key['Z']"
HOTKEY = "Key['X']"
MINIMAP = "Key['C']"
RUN = "Key['Left Shift']"
SNEAK = "Key['.']"
JUMP = "Key['Space']"
TURN = "Key['U']"
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS::Config
#----------------------------------------------------------------------------
# This module provides Blizz-ABS configurations.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Config
# 2.1. # Basic Configuration
MAX_PARTY = 4
CATERPILLAR = false
ANIMATED_IDS = [0]
HEAL_ON_LVLUP = true
DISABLE_ABS_MODE = 0
MENU_COLOR_TINT = 0
ITEM_TIME = 30
ITEM_PICKUP_SOUND_FILE = RPG::AudioFile.new('056-Right02', 80, 100)
DROP_GOLD = ''
PICKUP_ON_TOUCH = false
# 2.2. # Movement Configuration
PIXEL_MOVEMENT_RATE = 0
REPAIR_MOVEMENT = true
EIGHT_WAY_MOVEMENT = false
NORMAL_SPEED = 4
RUN_SPEED = 5
SNEAK_SPEED = 3
JUMPING = 2
NO_JUMP_TAGS = []
ALLOW_JUMP_TAGS = []
# 2.3. # Lag Prevention Configuration
INTELLIGENT_PASSABILTY = false
ABSEAL_AUTOKILL = true
FACTOR = 4
DISABLE_ANTILAG_IDS = []
# 2.4. # Game Info Configuration
HUD_ENABLED = true
HUD_POSITION = 0
HUD_TYPE = 0
MINIMAP = true
ENEMY_HEALTH_BARS = 0
MATCH_HEALTH_BAR_WIDTH = false
WEAPON_DATA_MODE = [0, 0]
SKILL_DATA_MODE = [0, 0, 0]
ITEM_DATA_MODE = [0, 0, 0]
# 2.5. # Enemy Behavior Configuration
AI_DEFAULT_ATTRIBUTES = '11111111'
AI_DELAY_TIME = 40
AI_MEMORY_COUNT = 80
PERCEPTION_RANGE = 5
RESPAWN_TIME = 0
WALL_TAGS = []
NO_ENEMY_TAGS = []
# 2.6. # Animation Configuration
ANIMATIONS = true
SMALL_ANIMATIONS = true
DISPLAY_LVLUP = true
LVLUP_ANIMATION_ID = 0
FLEE_LOOP_ANIMATION_ID = 0
CALL_HELP_ANIMATION_ID = 0
# 2.7. # Sprite Control Configuration
ACTOR_ACTION_SPRITES = true
ENEMY_ACTION_SPRITES = true
ACTOR_SKILL_SPRITES = true
ENEMY_SKILL_SPRITES = true
WEAPON_SPRITES = false
RUNNING_SPRITES = true
SNEAKING_SPRITES = true
JUMPING_SPRITES = true
ACTOR_SPRITE_Y_OFFSET = 0
ENEMY_SPRITE_Y_OFFSET = 0
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS::Weapons
#----------------------------------------------------------------------------
# This module provides weapon configurations.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Weapons
def self.type(id)
case id
# START set up weapon types (when ID then return TYPE)
when 1 then return 0 ## Bronze Sword
when 2 then return 0 ## Bronze Sword
when 3 then return 3 ## Bronze Sword
when 4 then return 5 ## Bronze Sword
when 5 then return 2 ## Bronze Sword
when 6 then return 6 ## Bronze Sword
# END
end
return 0
end
def self.range(id)
case id
# START set up weapon ranges (when ID then return RANGE)
when 1 then return 1
when 2 then return 1.2
when 3 then return 4.5
when 4 then return 5.7
when 5 then return 4
when 6 then return 5
# END
end
return 1.5
end
def self.consume(id)
case id
# START set up ammo consumption (when ID then return ID_ARRAY)
when 4 then return [9, 10] ## can consume LOS Fork and/or Fire Arrows
# END
end
return []
end
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS::Skills
#----------------------------------------------------------------------------
# This module provides skill configurations.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Skills
def self.type(id)
return [2, 0.0]
end
def self.range(id)
return 1.0
end
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS::Items
#----------------------------------------------------------------------------
# This module provides item configurations.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Items
def self.type(id)
return [2, 0.0]
end
def self.range(id)
return 5.5
end
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS::Enemies
#----------------------------------------------------------------------------
# This module provides enemy configurations.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Enemies
def self.type(id)
case id
when 1 then return 1 ## Undead01 - spear type
return 0
end
def self.range(id)
return 1.5
end
def self.enemy_set(id)
return ''
end
def self.destruct(id)
return 0
end
end
end
end
I cant seem to add more then one spoiler the site just gives me an error "The message body was left empty."
*eye twitch*
First... use the spoiler AND code tags when posting scripts. :) And you can have more than one spoiler tag...
Mmm... if you get part one from the config application and copy and paste parts 2 and 3 right from the text files under part 1, it really shouldn't have a problem.
If you still do, then please say what other scripts you're using and in what order.
Nop, cant seem to add more, i still get "The message body was left empty" anyways the first spoiler has the first script, so please take a look at it if you wish, ill add the second part if it lets me.
EDIT:
Its not letting me add the second part of the ABS, so ill add the part that's giving me the problem.
ai.act = [BlizzABS::Enemies.range(char.battler_id), -1,
[spoiler]Some text...[/spoiler]
[spoiler]Some text for other spoiler[/spoiler]
Hm... you have a typo...
I'll just tell you what they should be.
If you don't have the action sprites, the game will tell you it can't find the sprite and end since you turned on action sprites.
Ok so i changed
to
But i still get the "line 2938: NoMethodError occurred" error. You wouldent know how to fix that or maybe help me out if you got time. This is not something to rush over for but its interesting enough not to give up on.
EDIT:
Doesint 0 count as off and 1 as on? i mean it dint do nothing ether way...
Even though i had it
it still worked, but thank you for pointing it out.
EDIT:
LOL, OK never mind... I don't know why but its working I deleted some things in the first ABS and now I can attack and kill without the error popping up...
Something must be wrong without your configuration. And "line 2938: NoMethodError occurred" doesn't help too much, I'd need the full error message. -_-
BTW, your name is Miroslav, where are you from?