Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: nathmatt on April 16, 2008, 12:14:44 am

Title: bliz abs 2 weapon script (request)
Post by: nathmatt on April 16, 2008, 12:14:44 am
does any1 know where i could get a script for bliz abs that would allow you to use 2 weapons like a boomerang and a sword which say sword would use the normal att key but the boomerang would use another key like (O) or somthing
Title: Re: script (request)
Post by: Blizzard on April 16, 2008, 04:43:41 am
Actually all somebody needed to do is add an secondary attack handling to another key (CTRL+SHIFT+F and find Input::Attack) and use another ID in Game_Actor to store the secondary weapon so it could be called at the secondary attack. That can be done within 5 minutes, somebody just needs to type it all out. :)

Of course you'd need a custom equip scene where you can equip an extra weapon.
Title: Re: script (request)
Post by: nathmatt on April 16, 2008, 03:09:07 pm
i found 1 that lets u use ur shield slot how would i use that if i wanted it to use the (L) key like the shield does ?

Title: Re: script (request)
Post by: nathmatt on May 10, 2008, 04:15:07 pm
how would i go about making it use a diferent sprite for the secound weapon

Spoiler: ShowHide
 if !@character.is_a?(Drop_Event) || !@character.dropped
      # save old bitmap
      b = self.bitmap
      # call original method
      upd_player_blizzabs_later
      # if Map_Battler, another bitmap and weapon_sprite
      if @character.is_a?(Map_Battler) && b != self.bitmap &&
          @weapon_sprite != @character.weapon_sprite
        # store current weapon_sprite
        @weapon_sprite = @character.weapon_sprite
        # get display rectangle
        rect = self.src_rect.clone
        # cache bitmap again, but this time use a copy
        self.bitmap = RPG::Cache.character(@character_name, @character_hue).clone
        # cache weapon bitmap
        b = RPG::Cache.character(@character_name + @weapon_sprite, 0)
        # draw weapon onto character copied bitmap
        self.bitmap.blt(0, 0, b, Rect.new(0, 0, b.width, b.height))
        # reset source rectangle
        self.src_rect = rect
      end
Title: Re: script (request)
Post by: Aqua on May 10, 2008, 04:33:43 pm
Ooh!  This would work NICELY with my game.

And well... I just abruptly woke up from my nap so... I think I'll wait here for a bit before attempting what Blizz says so my brain juices catch up.

Edit:
~Okay um... I don't get how to do it ^.^""
Title: Re: script (request)
Post by: nathmatt on May 10, 2008, 06:44:25 pm
lol me either i think i have done some of what u do but not sure