Help on changing weapon range with Blizz-ABS

Started by thepathmage, March 01, 2009, 12:49:06 pm

Previous topic - Next topic

thepathmage

I simply did not uderstand how to CHANGE the weapon range of weapons. It seems all weapons I have are 1.5 in weapon range, and I think there should be an advantage to shoot with a bow...
YES! I have searched the forums, found everything else..
Just want to know how you change this, and preferably how to make consumable throwing stars too.
Thanks.

Aqua


thepathmage

March 01, 2009, 12:53:25 pm #2 Last Edit: March 01, 2009, 12:58:02 pm by thepathmage
This one?
Spoiler: ShowHide
#============================================================================
  # BlizzABS::Weapons
  #----------------------------------------------------------------------------
  #  This module provides weapon configurations.
  #============================================================================
 
  module Weapons
   
    #--------------------------------------------------------------------------
    # type
    #  id - weapon ID
    #  This method serves as database for weapon types.
    #  0 = sword / axe / claws / unarmed / etc. (damages in close front)
    #  1 = spear / lance (damages only in front)
    #  2 = flail (distant weapon, does not damage close enemies, front)
    #  3 = boomerang (returning projectile weapon, front)
    #  4 = bow and arrows / gun / shuriken (non-returning projectile, NO consumption)
    #  5 = bow and arrows / gun (non-returning projectile, consumes AMMUNITION)
    #  6 = shuriken (non-returning projectile, consumes ITSELF)
    #--------------------------------------------------------------------------
    def self.type(id)
      case id
      # START set up weapon types (when ID then return TYPE)
      when 1 then return 0
      # END
      end
      return 0
    end
    #--------------------------------------------------------------------------
    # range
    #  id - weapon ID
    #  This method serves as database for weapon ranges. All ranges are
    #  measured in map squares. Any decimal value WILL have its effect if
    #  pixel movement is being used.
    #--------------------------------------------------------------------------
    def self.range(id)
      case id
      # START set up weapon ranges (when ID then return RANGE)
      when 1 then return 1.5
      # END
      end
      return 1.5
    end
    #--------------------------------------------------------------------------
    # consume
    #  id - weapon ID
    #  Lets your weapons consume items to work. You must have the item assigned
    #  as your hot item for the weapon to work. One weapon can consumes
    #  different items. If you don't have any items left, the attack will fail.
    #  Allies' items for usage can be set up directly or over the AI menu.
    #--------------------------------------------------------------------------
    def self.consume(id)
      case id
      # START set up ammo consumption (when ID then return ID_ARRAY)
      when 1 then return []
      # END
      end
      return []
    end
  end


Because I didn't understand this part..

winkio

in the BlizzABS folder that you download, there is a configuration application called Blizz-ABS Config.exe.  Copy this file into the directory of your rmxp project (the one that has game.exe, project.exe, a graphics, audio, and a data folder.  then, open the application to configure your script.  Att the end, it will generate the configurated script for you.  This generated script should replace part 1.

thepathmage

March 01, 2009, 01:16:23 pm #4 Last Edit: March 01, 2009, 01:17:53 pm by thepathmage
Thank you very much sir.  :)

EDIT: Oops, I don't have that file  :wacko:
Anyone got a download link?

winkio

March 01, 2009, 01:21:42 pm #5 Last Edit: March 01, 2009, 01:29:57 pm by winkio
most recent links here:

http://forum.chaos-project.com/index.php?topic=106.0

EDIT: By the way, you have a very old version.  There have been a lot of updates between your version and the current one, including the config app, party AI, traps, summons, and  a custom animation engine, among others.  You can check it all out in the new version of the manual (also in the downloadable blizz-ABS folder).

thepathmage

March 01, 2009, 02:10:00 pm #6 Last Edit: March 01, 2009, 02:56:23 pm by thepathmage
OK, thank you very much.

EDIT: Another problem though, or two..
Once I added the new script everything worked great, until I tried to save, I got the following syntax error:
"Script 'Window_SaveFile' line 30: ArgumentError occurred. undefined class/module Game_Controls"

Additionally, the XP bar in the HUD is gone  :wacko:

fugibo

I'd say scrap your install of BlizzABS and reinstall the latest from the his thread.


Aqua


thepathmage

Got it fixed now, had to delete old gamefile  :^_^':