Author Topic: [XP] Secondary Weapon for Blizz-ABS  (Read 16463 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Secondary Weapon for Blizz-ABS
« on: December 04, 2008, 05:32:05 PM »
Secondary Weapon for Blizz-ABS
Authors: Blizzard
Version: 1.0b
Type: Blizz-ABS plugin
Key Term: Blizz-ABS Plugin

Introduction

This script will add a button for a secondary weapon which is equipped in the place of the armor. This plugin only provides the control, not the equipping!

This script is to be distributed under the same terms and conditions like the script it was created for: Blizz-ABS.

Features

  • use a second weapon on button press
  • easy to configure
  • provides only the control, NOT the equipping system

Screenshots

N/A

Demo

N/A

Script

Just make a new script above main and paste this code into it.
(click to show/hide)

Instructions

None required.

Compatibility

Requires Blizz-ABS to work.

Credits and Thanks

  • Blizzard
  • Thanks to Aqua for requesting this a long time ago.

Author's Notes

Keep in mind that this plugin comes UNDER Blizz-ABS. This script was done on request quite some time ago and is not fully supported by me as my other scripts are.

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: December 29, 2010, 02:27:26 AM by game_guy »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Punn

  • Ethereal Devastator
  • ****
  • Posts: 493
  • LV: 9
    • View Profile
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #1 on: December 04, 2008, 10:54:02 PM »
Not compatible with Guiluame's multi-equip?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #2 on: December 04, 2008, 11:07:04 PM »
I don't think so. Well, if you would change that armor1_id is substituted with the the weapon_id, it might work. I might fix this compatibility issue myself later, though.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Makasu

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 0
  • Gender: Male
  • Kermit wants to sex you up. Yes he does. ;]
    • View Profile
    • Scribbles-n-bits.com
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #3 on: December 17, 2008, 04:43:11 PM »
I'm sorry to bring this topic back up but using this with BABS is there a way to make the second attack show? IE if I have two guns dual weilded? It'll show the character set accompanied with the bullet?
« Last Edit: December 17, 2008, 04:58:13 PM by Makasu »
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
(click to show/hide)


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #4 on: December 17, 2008, 05:11:29 PM »
Yes. This add-on swaps the secondary weapon with the real one to execute the attack so all of Blizz-ABS's configurations work normally. Then it swaps it back.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Makasu

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 0
  • Gender: Male
  • Kermit wants to sex you up. Yes he does. ;]
    • View Profile
    • Scribbles-n-bits.com
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #5 on: December 17, 2008, 05:14:14 PM »
Argh well I can't get it to work. :( not at all. It won't use the attack or show the sprites associated...
Maybe it would be the script order? I'm not to sure though.

Help?
« Last Edit: December 17, 2008, 05:19:51 PM by Makasu »
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
(click to show/hide)


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #6 on: December 17, 2008, 05:28:10 PM »
Author's Notes

Keep in mind that this plugin comes UNDER Blizz-ABS.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Makasu

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 0
  • Gender: Male
  • Kermit wants to sex you up. Yes he does. ;]
    • View Profile
    • Scribbles-n-bits.com
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #7 on: December 17, 2008, 05:32:54 PM »
Yes I have it under BABS but still nothing at all. :( I'm not to sure whats going on. But I get nothing. No second attack or anything. No damage pops or anything. I even tried it where I have a gun and a sword equipped and nothing at all! I would put together another demo for you but I'm more than certain you're tired of troubleshooting me. XD
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
(click to show/hide)


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #8 on: December 17, 2008, 06:33:38 PM »
You do realize that the second weapon is equipped as shield (which has to have the same ID as the appropriate weapon) and that it doesn't work with custom equipment systems?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Makasu

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 0
  • Gender: Male
  • Kermit wants to sex you up. Yes he does. ;]
    • View Profile
    • Scribbles-n-bits.com
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #9 on: December 17, 2008, 06:40:22 PM »
I'm not aware of that. So there is no way to get it to work the way I want to have it? At all?

But see with Guille's it adds another weapon slot while keeping the original shields and such intact.
« Last Edit: December 17, 2008, 06:42:20 PM by Makasu »
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
(click to show/hide)


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #10 on: December 17, 2008, 06:47:56 PM »
You can use a custom mod. Best you ask Aqua. She made a mod for herself.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Makasu

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 0
  • Gender: Male
  • Kermit wants to sex you up. Yes he does. ;]
    • View Profile
    • Scribbles-n-bits.com
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #11 on: December 17, 2008, 06:51:10 PM »
Alrighty! :D will do. Thanks a lot Blizz greatly appreciated. But either ways so does this script work with BABS 2.x? Because either if I try to use a sword or shield or anything of that nature it get nothing for a second attack.

Oh wait nevermind. You just explained that. XD
Dead on Arrival is the name of my project. Topic thread coming sooner or later.

Me on deviantart.com
(click to show/hide)


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #12 on: December 17, 2008, 07:08:48 PM »
Code: [Select]
#   This script must be placed below Blizz-ABS and require Blizz-ABS v2.1 or
#   higher to work properly. ...

Try using a shield that has the same ID as some weapon. i.e. a sword is ID 6, so equip a shield with armor ID 6.
« Last Edit: December 17, 2008, 07:10:02 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Kagutsuchi

  • Ethereal Devastator
  • ****
  • Posts: 468
  • LV: 2
  • Gender: Male
  • The God of .. eating souls?
    • View Profile
    • University Hosted Web Page - In Norwegian
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #13 on: December 30, 2008, 01:55:38 AM »
Could you make a two-handed weapon feature?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #14 on: December 30, 2008, 02:58:31 PM »
No, this is not ABS specific.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #15 on: March 17, 2009, 05:10:21 AM »
This is a cool plugin though I have one question. Is it possible to make it actor specific?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #16 on: March 17, 2009, 09:26:38 AM »
Don't allow equipping another weapon, duh.
« Last Edit: March 17, 2009, 09:27:39 AM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline RoseSkye

  • Ban requested
  • Chaos User
  • ******
  • Posts: 1201
  • LV: 58
  • Gender: Male
  • Chaos Project's Black Sheep
    • View Profile
    • Loveless Games
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #17 on: April 03, 2009, 12:43:51 AM »
How would I make it  armor specific? Some Shields I want to shield.. others I want to attack.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #18 on: April 03, 2009, 11:58:04 AM »
You need to distiguish them. Find this line:

Code: [Select]
    if $game_system.attack_button && Input.trigger?(SECONDARY_WEAPON_BUTTON)
Change it to this:

Code: [Select]
    if $game_system.attack_button && Input.trigger?(SECONDARY_WEAPON_BUTTON) && [X, Y, Z].include?($game_player.battler.armor1_id)
Replace X, Y, Z and add/remove armor IDs that can attack.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Secondary Weapon for Blizz-ABS
« Reply #19 on: April 04, 2009, 06:46:42 AM »
*whistles*
I found the mod I use for double weapons... XD

http://www.creationasylum.net/index.php?showtopic=1604