[XP] Tons of Add-ons

Started by Blizzard, January 09, 2008, 08:50:47 am

Previous topic - Next topic

SilverShadow737

Quote from: Blizzard on August 11, 2010, 05:24:58 am
Well, that's what it's supposed to do. If you want other events to appear on the minimap, you have to mark them. You should read the instructions of the script.


The instructions don't say anything about marking them though.

Spoiler: ShowHide
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Blizz-ABS Minimap by Blizzard
# Version: 2.0
# Type: Game Playability Improvement
# Date: 7.2.2007
# Date v2.0: 16.4.2009
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Compatibility:
#
#   95% compatible with SDK v1.x. 60% compatible with SDK v2.x. This add-on
#   NEEDS "Quick Passability Test" by Blizzard. WILL corrupt your old
#   savegames. Might not work with special map add-ons. Does NOT work with
#   pixel-movement without changing the code.
#
#
# Why this minimap script better is than any other (aka features):
#
#   - simple display to avoid lag
#   - custom size, position and opacity, changeable even during the game
#   - no bitmaps, no pictures to import, only plain script
#   - automatically makes use of Blizz-ABSEAL if installed to decrease lag even
#     further
#
#
# Explanation:
#
#   This add-on will draw a real-time minimap on the specified X and Y
#   coordinate on your screen. It will show the player, events that do NOT have
#   a comment in their code that says "\nomap", that are not parallel
#   process and that are not auto-start and that are not erased yet. Events
#   with a teleport/transfer player command will be shown in a different color.
#   Any event with and comment with "\spc" in their code will be also
#   displayed differently. Blizz-ABS disables this add-on automatically and
#   uses the built-in version of the Blizz-ABS Minimap.
#
#
# Instructions:
#
#   You can trigger the minimap visible/invisible with F5 during the game.
#   Set up the starting configuration below. The colors follow a template of:
#
#     WHAT_COLOR = Color.new(R, G, B)
#
#   R - red
#   G - green
#   B - blue
#
#   Change the colors of the dots on the map as you prefer it.
#
#   PLAYER_COLOR    - the player on the minimap
#   EVENT_COLOR     - any event on the minimap that is not erased, is not
#                     auto-start, is not parallel process and does not have a
#                     comment in its code with the word "no_minimap"
#   TELEPORT_COLOR  - any event like the one above, but that has a teleport/
#                     transfer_player command
#   SPECIAL_COLOR   - any event with a comment with the word "special"
#   MINIMAP_X       - default X of the minimap on the screen
#   MINIMAP_Y       - default Y of the minimap on the screen
#   MINIMAP_WIDTH   - default maximal allowed width of the minimap
#   MINIMAP_HEIGHT  - default maximal allowed height of the minimap
#   MINIMAP_OPACITY - default opacity of the minimap on the screen
#
#   You have the possibility to change the minimap's size, coordinates and
#   opacity during the game process. The command you need to type in into a
#   "Call Script" command window are:
#
#     $game_system.set_minimap_coordinates(X, Y)
#     $game_system.set_minimap_size(W, H)
#     $game_system.set_minimap_opacity(A)
#
#   X - new X
#   Y - new Y
#   W - new width
#   H - new height
#   A - new opacity
#
#   Any changes will be applied instantly. Note that you don't need to use ALL
#   commands.
#   The minimap mode can be changed using this code:
#
#     $game_system.minimap_mode = MODE
#
#   MODE - new mode (0 = off; 1 = on; 2 = full map)
#
#
# Note:
#
#   Changing X, Y and opacity during the game will result in just moving the
#   sprite. The minimap will not work if the maximal allowed size is smaller
#   than the map size. (i.e. if your minimap is 160x120, maps like 170x130,
#   180x15 or 20x140 will not work.)
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# Start Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

PLAYER_COLOR = Color.new(0, 255, 0)
EVENT_COLOR = Color.new(0, 128, 255)
TELEPORT_COLOR = Color.new(255, 255, 0)
SPECIAL_COLOR = Color.new(255, 0, 0)
MINIMAP_X = 0
MINIMAP_Y = 0
MINIMAP_WIDTH = 160
MINIMAP_HEIGHT = 160
MINIMAP_OPACITY = 160
MAP_MOVE_BUTTON = Input::Z

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# End Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Ginyu Force Rules

ForeverZer0


#   Any event with and comment with "\spc" in their code will be also
#   displayed differently. Blizz-ABS disables this add-on automatically and
#   uses the built-in version of the Blizz-ABS Minimap.


Read that a few times.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

SilverShadow737

Ah my bad, I didn't know you had to put the comment in the name of the event, I was using the comment command.
Thanks for the help.
Ginyu Force Rules

ForeverZer0

Quote from: SilverShadow737 on August 11, 2010, 09:14:46 pm
Ah my bad, I didn't know you had to put the comment in the name of the event, I was using the comment command.
Thanks for the help.


No problem.  8)
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Magus

Guys I'm having a problem with Tons of Add-ons. It will not allow me to "add a party member" can you tell me what's happening(or what's the cause of this)
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Jragyn

October 05, 2010, 04:31:22 am #705 Last Edit: October 05, 2010, 04:54:32 am by jragyn00
If I set up all enemies to give me different AP amounts (using EQUAP skills)

Is there any reason under the sun that two events bearing the same enemy.id would give different APs?
(using in conjunction with BlizzABS)

Essentially I copy pasted an event with the name of \e[3] or whatever, so I could have a number of the same sort of enemy in an area, but for some reason, each event seems to give different amounts of AP. These amounts are fixed to the event, as if I change the ID in the name, the amount of AP received does not change.

I utterly cannot figure this out. At all. Seemingly, the database of AP values that I set up against the enemy.ids have no relevance to what the game gives me in AP. :\

EDIT:: After closer inspection, I noticed that enemies are giving their respect Event_ID in AP.
           ...wtf? I look in the "additional_result" method of BlizzABS p2, and I see this:

    def additional_result(enemy)
      # if Tons of Add-ons there and EQUAP active
      if $tons_version != nil && $tons_version >= 7.32 &&
          TONS_OF_ADDONS::EQUAP_SKILLS
        # get AP result
        ap = BlizzCFG.gainap(enemy.id)    <---------------------------------------------------
        # for each actor
        $BlizzABS.battlers.each {|battler|
            # if actor can gain AP
            if battler.valid? && (!battler.battler.dead? || GAIN_DEAD)
              # add AP
              battler.battler.add_ap(ap)
            end}
      end
    end


Which indicates that it should be drawing the ID of the enemy, not the event, right?
Hmm.

EDIT-BEFORE-FINISHED-POSTING::
Replaced the line:
ap = BlizzCFG.gainap(enemy.id)

with this:
ap = BlizzCFG.gainap(enemy.battler.id)

and it seems to work.
[shrugs]

Was it always like that?


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Blizzard

Yes, that's correct. Remind winkio to fix that. Also, use this as it is a bit safer:

ap = BlizzCFG.gainap(enemy.battler_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.

Jragyn

A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Blizzard

If battler is nil for some reason, it will crash (method id undefined for nil class). My code will prevent that crash as battler_id returns simply 0 if the battler is nil.
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.

Zolnova

I have a question about Blizzard's Animated Battlers for Non-Action BS.
Using the same name the pictures in order method, is it possible to add an attack animation as well?

like: hero1_a1, hero1_a2


Blizzard

It can be done, but it's not supported by that add-on.
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.

Ryex

Quote from: Zolnova on October 05, 2010, 02:59:39 pm
I have a question about Blizzard's Animated Battlers for Non-Action BS.
Using the same name the pictures in order method, is it possible to add an attack animation as well?

like: hero1_a1, hero1_a2



my battle system AnTBS has this feature, I uses the tones version to create it so it works the same way
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Jragyn

If I wanted to only apply the effects of a passive skill after it is learned completely (AP-wise),
what sort of modifications would I make?

Not including all the modifications I made, I tried something like this:
if aps == @actor.ap(@skill.id)
      @skills.each {|id| result *= BlizzCFG.passkl_database_mult(id)[0]}
end

but it drops an error about undefined ap for nilclass :\

Any suggestions?


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Zolnova

Quote from: Ryexander on October 05, 2010, 03:28:27 pm
Quote from: Zolnova on October 05, 2010, 02:59:39 pm
I have a question about Blizzard's Animated Battlers for Non-Action BS.
Using the same name the pictures in order method, is it possible to add an attack animation as well?

like: hero1_a1, hero1_a2



my battle system AnTBS has this feature, I uses the tones version to create it so it works the same way


yes!!!!
Thats what I need for definite!!
thanks!!!

The only problem is that i see a large black rectangle at the top of the battle screen whet I use the psudo 3d camera script.
Any way of eliminating it?
I'd like to keep the 'zoom in on the enemy when you attack' in the game. looks so awesome!

Ryex

the scripts are incompatable
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Spoofus

i was wondering something,

i'd like to use map as battleback(cause it would look kinda like the snes lufia(the first one) ),but to make it work out i was wondering how i could fade it to a grey and after the battles are over have it go back to normal.


My Blog site I am working on: http://spoofus.weebly.com/

ForeverZer0

Change the screen tone. They even have an event for it.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Spoofus

well i know how to do it through events, i was just curious of how one would do it through scripting


My Blog site I am working on: http://spoofus.weebly.com/

stripe103

a = Tone.new(-255.0, 255.0, -122.5, 0.0)
b = 20
$game_screen.start_tone_change(a,b)

G_G