[BABS] Magazine Ammunition

Started by AJNR95, April 07, 2012, 02:51:30 pm

Previous topic - Next topic

AJNR95

Introduction
The script I would like is a window that updates on the screen and limits the player's attacking/shooting.
Blizzard ABS has the ranged weapon, and the ranged weapon that consumes an item. However, the player
can continuously shoot until the consumed item reaches 0.


Example
The top image of the first spoiler is a screen capture of the actual game.
The bottom image of the first spoiler has a simple window edited in with Paint .NET
Spoiler: ShowHide

The second spoiler contains the visuals of Optional 1 and Optional 2
Within both spoilers, there are 2 numbers within the edited window.
The top number represents TOTAL Ammunition, where the bottom represents the CURRENT Ammunition within the "Magazine"
Spoiler: ShowHide



Information
How I would like it to work
  • The number of ammunition (bullets) changes to the weapon equipped
  • The window disappears when equipping a weapon not listed as "BOW_ARROW" or simply, a melee weapon
  • Optional 1 The weapon icon changes to the weapon equipped
  • If Optional 1 is Invalid If this is the case, the window can go without a weapon icon
  • Optional 2 The graphic for the bullets changes for the weapon equipped
  • If Optional 2 is Invalid If this is the case, the bullet's graphic can all be the same
  • The window can be hidden with an Advanced Script Command



Scripts I am using

  • LiTTleDRAgo's Blizz ABS ENEMY HP METER
  • Blizzard's Rapid Fire for Blizz-ABS
  • LiTTleDRAgo's Smooth Scroller
  • Blizzard's Z-HUD for Blizz-ABS
  • Nathmatt's BlizzABS Battle Music
  • RPGManiac3030's Weapon Equip HUD for Z-HUD
  • Game_Guy's Maximum Amount Modifier



Note
This is not a major or serious project. If you wish to make a script then I would be glad,
but it is something not to be stressed on. If you would like to test your script on this specific
game, it is in the Resources Thread under the name, "Horror Template"

If there are issues with the current outline of Ammunition I've given, I can change it to a Cry of Fear
Ammunition outline, where the item does not represent 1 Bullet, but 1 Magazine, and is reduced by 1
when all the bullets are shot. However, this will need the item consumption in BABS Part 1 to be overwritten.
Spoiler: ShowHide


by Blizz: Spoilered, because image is 2.6 MB.
by AJNR95: Unspoilered, because fuck you - ¡Viva la Revolución!
by Blizz: Spoilered again, and Banned.

G_G

You should be able to accomplish this with a simple Common Event. (Unless of course I completely misunderstood this)
Spoiler: ShowHide


Though I can't help you with your HUD request, hopefully someone else can fill that part in.

AJNR95

April 07, 2012, 04:53:30 pm #2 Last Edit: April 07, 2012, 04:54:52 pm by AJNR95
But the Common Event there does not initiate the attack nor cancel it.
I was just asking if there was a way to make it like the player has a magazine
that unloads when shooting and needs to be reloaded when empty.

Something like:
Variable: Bullets > 0 ?
 $Initiate Attack
   Variable: Bullets -1
Else
 $Cannot Attack
    Wait 20 Frames
       Variable: Bullets +12
          Change Item: Magazine -1

Edit:
The Magazine Window does not have to be part of the Z-HUD, it can be it's own window
Spoiler: ShowHide


by Blizz: Spoilered, because image is 2.6 MB.
by AJNR95: Unspoilered, because fuck you - ¡Viva la Revolución!
by Blizz: Spoilered again, and Banned.

Zexion

Off topic: This is probably the most well put-together script request I've ever seen.

AJNR95

April 08, 2012, 05:04:59 pm #4 Last Edit: April 08, 2012, 05:11:21 pm by AJNR95
Quote from: Zexion on April 08, 2012, 02:03:32 am
Off topic: This is probably the most well put-together script request I've ever seen.


Thanks, do I get a trophy?

Click the happy face :D
Spoiler: ShowHide


by Blizz: Spoilered, because image is 2.6 MB.
by AJNR95: Unspoilered, because fuck you - ¡Viva la Revolución!
by Blizz: Spoilered again, and Banned.

Boba Fett Link

April 09, 2012, 02:48:45 pm #5 Last Edit: April 09, 2012, 02:52:17 pm by Boba Fett Link
Quote from: AJNR95 on April 08, 2012, 05:04:59 pm

Thanks, do I get a trophy?


Yes, here it is.
Spoiler: ShowHide


But its for providing that link, not for making a good script request




Quote from: AJNR95 on April 07, 2012, 04:53:30 pm
But the Common Event there does not initiate the attack nor cancel it.


You could just disable the attack button.
$game_system.attack_button = false 

And then re-enable it after they reload.
This post will self-destruct in 30 seconds.

AJNR95

Quote from: Boba Fett Link on April 09, 2012, 02:48:45 pm
But its for providing that link, not for making a good script request


Spoiler: ShowHide


Thank you Boba, I'm confident I can make an elaborate event system to replace a simple script.
But there's the issue with the Window, not really an issue, a request that is yet to be completed.
I'll see if I can create another elaborate event system that uses just pictures for the time being.

One question, does an abundance of pictures within the game cause the game to fall short in frames?
Since if I can't get a scripted Window, the evented Window will consist of constant Conditionals and Images.
And Blizz-ABS Rapid Fire and multiple enemies are the only source of creating a "choppy" frame rate.
Spoiler: ShowHide


by Blizz: Spoilered, because image is 2.6 MB.
by AJNR95: Unspoilered, because fuck you - ¡Viva la Revolución!
by Blizz: Spoilered again, and Banned.