[XP] Blizz-ABS

Started by Blizzard, January 09, 2008, 08:21:56 am

Previous topic - Next topic

legacyblade

I have both a bug and a question.

First is that even when I set bouncing damage to false, the damage display still bounces as if it were activated.

My question, however, is if there is a way to hide the display of damage. I'm using a more zelda like system in my game, and seeing "1" every hit looks really stupid :P

Lethal-Yarn

Quote from: legacyblade on October 07, 2009, 11:57:05 pmMy question, however, is if there is a way to hide the display of damage. I'm using a more zelda like system in my game, and seeing "1" every hit looks really stupid :P

BABS Part 2, around line 4000 should be this code:
def request_damage_sprite(char, damage = nil)

Just put "return" (without the double quotes) below it and that's it.

Blizzard

October 08, 2009, 03:44:40 am #2522 Last Edit: October 08, 2009, 06:57:49 pm by Blizzard
@HD:

$data_skills[ID].element_set.include?(ELEMENT_ID)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

legacyblade

Thanks Lethal-Yarn, works perfectly. *powers up*

rpgmakerfanhaha

October 09, 2009, 06:05:39 am #2524 Last Edit: October 09, 2009, 06:24:23 am by rpgmakerfanhaha
I know it's gonna to be a bit dumb question.how can I open up the menu and set the skills as the hotkeys?


[EDIT]
Alright,but how can I open the pre-menu?

Blizzard

There's a hotkey menu in Blizz-ABS's pre-menu.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

Lethal-Yarn

Quote from: rpgmakerfanhaha on October 09, 2009, 06:05:39 am
I know it's gonna to be a bit dumb question.how can I open up the menu and set the skills as the hotkeys?


[EDIT]
Alright,but how can I open the pre-menu?

If you're using the default settings from B-ABS, you use F.

Also, read the manual because it tells you simple stuff like this.

legacyblade

I feel really dumb asking questions for some reason, but here's another one. How would I make a skill increase the walk AND run speed? I've gotten one that increases the walk speed, but it would be nice to also change the run speed as well.

G_G


Lethal-Yarn

That would change walk speed, but I too wouldn't know how to change run/sneak speed.  I think when I was searching the forums back then, I *think* what I read was that it isn't possible to do that.

Karolu1

Hi, i have few problems with the script. First is the force action command it doesn't work for me it just do nothing, and second problem is when I create NPC after I talk to him everytime I touch him he starts talking. I hope you can find solution to it and sorry if I made any mistakes I'm still learning English.

Magus

Found a rare bug in the defend loop animation.
When I defended, the loop continued even after I let go of the defend-button. It wouldn't let me move or anything D:
Luckily my Al was alive, so I switched to him and was able to move with him. I switched back to Mario and the defend loop finally wore off about 10 seconds later.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.

momentai1018

I need help


I just downloaded Blizz ABS and I put all the code in but in part 2 somethings wrong. Everything works fine until I try to load saved game data, as soon as I try I get this

'Blizz ABS part 2' line 1485: TypeError occurred. nil can't be coerced into Fixnum

Aqua

Was the saved game data from before you added Blizz-ABS?
If it is, then there's no way to save it; you'll have to start a new game.

Magus

Quote from: Aqua on October 12, 2009, 01:55:31 pm
Was the saved game data from before you added Blizz-ABS?
If it is, then there's no way to save it; you'll have to start a new game.


If you got pretty far in your work, its a pain, but with blizz-abs IT'S WORTH IT!
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

winkio

don't post the same question in a bunch of different topics.

Blizz-ABS doesn't work with old save files, just make new ones.

nathmatt

i dont know y but hot keys will not return to the menu i edited it to do it but straight to the map here is Scene_Hotkeys

Spoiler: ShowHide
#==============================================================================
# Scene_Hotkeys
#------------------------------------------------------------------------------
#  This class handles the skill/item hotkey processing.
#==============================================================================

class Scene_Hotkeys
 
 #----------------------------------------------------------------------------
 # Initialization
 #  tone - screen background tone
 #----------------------------------------------------------------------------
 def initialize(tone = Tone.new(0, 0, 0, 0))
   # store current screen tint
   @tone = tone
   # store current party leader
   @party_leader = $game_party.actors[0]
 end
 #----------------------------------------------------------------------------
 # main
 #  The main processing method.
 #----------------------------------------------------------------------------
 def main
   # create spriteset
   @spriteset = Spriteset_Map.new
   # create viewport
   @view = Viewport.new(0, 0, 640, 480)
   # set tone to current screen tone
   @view.tone = @tone.clone
   # create HUD if HUD is turned on and HUD active
   @hud = Hud.new if BlizzABS::Config::HUD_ENABLED && $game_system.hud
   # if ASSIGNMENT is turned
   if BlizzABS::Config::HOTKEYS
     # create assignment display
     @hotkeys = Hotkey_Assignment.new
     # set z position
     @hotkeys.z = 5000
   end
   # if MINIMAP is turned on and minimap active
   if BlizzABS::Config::MINIMAP && $game_system.minimap > 0
     # create minimap
     @minimap = Minimap.new
   end
   # create sprite
   @choice = Sprite.new
   # create bitmap
   @choice.bitmap = $BlizzABS.cache.image('menu_arrow')
   # set x, y and z positions
   @choice.x, @choice.y, @choice.z, @choice.opacity = 160, 40, 500, 128
   # set x position offset
   @choice.ox = -8
   # set active flag
   @active = true
   # set index
   @index = 0
   # set up mode flag
   @up_mode = true
   # create modified skill window
   @skill_window = Window_Skill_Hotkey.new($game_player.battler)
   # create modified item window
   @item_window = Window_Item_Hotkey.new
   # set last active
   @last_active = true
   # transtition
   Graphics.transition
   # loop
   loop do
     # update game screen
     Graphics.update
     # update input
     Input.update
     # frame update
     update
     # stop if chosen an option
     break if $scene != self
   end
   # freeze screen
   Graphics.freeze
   # delete spriteset
   @spriteset.dispose
   # delete HUD elements that exist
   [@hud, @hotkeys, @minimap].each {|s| s.dispose if s != nil}
   # delete choice sprite
   @choice.dispose
   # delete skill window
   @skill_window.dispose
   # delete item window
   @item_window.dispose
   # delete viewport
   @view.dispose
   # while real leader is not first actor in party
   while @party_leader != $game_party.actors[0]
     # switch to next actor
     $BlizzABS.player.switch_leader
   end
 end
 #----------------------------------------------------------------------------
 # update
 #  The update processing method.
 #----------------------------------------------------------------------------
 def update
   # update choice sprite
   @choice.update
   # update skill window
   @skill_window.update
   # update item window
   @item_window.update
   # update hotkey assignment display if existing
   @hotkeys.update if @hotkeys != nil
   # move by 2 or 1 whether active in direction depending on @up_mode
   @choice.oy += (@up_mode ? (@active ? 2 : 1) : (@active ? -2 : -1))
   # set new @up_mode if necesseray depending on @up_mode
   @up_mode = (@up_mode ? (@choice.oy < 8) : (@choice.oy <= -8))
   # if select button pressed
   if $game_system.select_button && Input.trigger?(Input::Select)
     # play sound
     $game_system.se_play($data_system.cursor_se)
     # switch to next actor
     $BlizzABS.player.switch_leader
     # switch to next actor
     @skill_window.switch_actor
     # update HUD if existing
     @hud.update if @hud != nil
     # update hotkey assignment display if existing
     @hotkeys.update if @hotkeys != nil
   # if active
   elsif @active
     # set choice offset always to a number divisable with 2
     @choice.oy = @choice.oy / 2 * 2
     # update hotkey selection
     update_choice
   # if skill window is active
   elsif @skill_window.active
     # update skill selection
     update_skill
   # if item window is active
   elsif @item_window.active
     # update item selection
     update_item
   end
 end
 #----------------------------------------------------------------------------
 # update_choice
 #  Updates input during the hotkey selection.
 #----------------------------------------------------------------------------
 def update_choice
   # set x position
   @choice.x = 160 + @index * 32
   # if pressed B
   if Input.trigger?(Input::B)
     # play cancel sound
     $game_system.se_play($data_system.cancel_se)
     # create menu scene
     $scene = Scene_Menu.new(6)
   # if C is pressed
   elsif Input.trigger?(Input::C)
     # play sound
     $game_system.se_play($data_system.decision_se)
     # not active
     @active = false
     # the one that was active the last time is now active
     @skill_window.active = @last_active
     @item_window.active = (!@last_active)
   # if RIGHT is being pressed
   elsif Input.repeat?(Input::RIGHT)
     # if RIGHT is pressed or index is less than 9
     if Input.trigger?(Input::RIGHT) || @index < 9
       # play sound
       $game_system.se_play($data_system.cursor_se)
       # set new index
       @index = (@index + 1) % 10
     end
   # if LEFT is being pressed
   elsif Input.repeat?(Input::LEFT)
     # if LEFT is pressed or index is equal or greater than 1
     if Input.trigger?(Input::LEFT) || @index >= 1
       # play sound
       $game_system.se_play($data_system.cursor_se)
       # set new index
       @index = (@index + 9) % 10
     end
   end
 end
 #----------------------------------------------------------------------------
 # update_skill
 #  Updates input during the skill selection.
 #----------------------------------------------------------------------------
 def update_skill
   # set last active
   @last_active = true
   # if B is pressed
   if Input.trigger?(Input::B)
     # play cancel sound
     $game_system.se_play($data_system.cancel_se)
     # set active
     @active = true
     # skill window is not active
     @skill_window.active = false
     # delete cursor
     @skill_window.cursor_rect.empty
   # if C is pressd
   elsif Input.trigger?(Input::C)
     # play sound
     $game_system.se_play($data_system.decision_se)
     # if last position
     if @skill_window.index == @skill_window.item_max - 1
       # remove hotkey assigmnent from skill
       $game_player.skill_hotkeys[(@index+1)%10] = 0
     else
       # set skill to hotkey
       $game_player.skill_hotkeys[(@index+1)%10] = @skill_window.skill.id
     end
     # remove hotkey assigmnent from item
     $game_player.item_hotkeys[(@index+1)%10] = 0
     # draw hotkey display if hotkey display exists
     @hotkeys.draw(@index+1) if @hotkeys != nil
     # set active
     @active = true
     # skill window is not active
     @skill_window.active = false
     # delete cursor
     @skill_window.cursor_rect.empty
   # if RIGHT or LEFT is pressed
   elsif Input.trigger?(Input::RIGHT) || Input.trigger?(Input::LEFT)
     # play sound
     $game_system.se_play($data_system.cursor_se)
     # item window is active
     @item_window.active = true
     # skill window is not active
     @skill_window.active = false
     # delete cursor
     @skill_window.cursor_rect.empty
   end
 end
 #----------------------------------------------------------------------------
 # update_item
 #  Updates input during the item selection.
 #----------------------------------------------------------------------------
 def update_item
   # set last active
   @last_active = false
   # if B is pressed
   if Input.trigger?(Input::B)
     # play cancel sound
     $game_system.se_play($data_system.cancel_se)
     # set active
     @active = true
     # item window is not active
     @item_window.active = false
     # delete cursor
     @item_window.cursor_rect.empty
   # if C is pressed
   elsif Input.trigger?(Input::C)
     # play sound
     $game_system.se_play($data_system.decision_se)
     # if last position
     if @item_window.index == @item_window.item_max - 1
       # remove hotkey assigmnent from item
       $game_player.item_hotkeys[(@index+1)%10] = 0
     else
       # set item to hotkey
       $game_player.item_hotkeys[(@index+1)%10] = @item_window.item.id
     end
     # remove hotkey assigmnent from skill
     $game_player.skill_hotkeys[(@index+1)%10] = 0
     # draw hotkey display if hotkey display exists
     @hotkeys.draw(@index+1) if @hotkeys != nil
     # set active
     @active = true
     # item window is not active
     @item_window.active = false
     # delete cursor
     @item_window.cursor_rect.empty
   # if RIGHT or LEFT is pressed
   elsif Input.trigger?(Input::RIGHT) || Input.trigger?(Input::LEFT)
     # play sound
     $game_system.se_play($data_system.cursor_se)
     # skill window is active
     @skill_window.active = true
     # item window is not active
     @item_window.active = false
     # delete cursor
     @item_window.cursor_rect.empty
   end
 end
 
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


Veke

What's the script conditional thingie for checking an enemy's HP?

Blizzard

$BlizzABS.get_enemy(EVENT_ID).hp

Refer to the manual for more info.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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.