bliz abs 2 weapon script (request)

Started by nathmatt, April 16, 2008, 12:14:44 am

Previous topic - Next topic

nathmatt

April 16, 2008, 12:14:44 am Last Edit: May 12, 2008, 01:09:35 pm by nathmatt
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
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

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.

nathmatt

April 16, 2008, 03:09:07 pm #2 Last Edit: May 10, 2008, 04:12:28 pm by nathmatt
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 ?

Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


nathmatt

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
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Aqua

May 10, 2008, 04:33:43 pm #4 Last Edit: May 10, 2008, 04:40:48 pm by Aqua
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 ^.^""

nathmatt

lol me either i think i have done some of what u do but not sure
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script