Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

-Luke-

Member
  • Content Count

    15
  • Joined

  • Last visited

Everything posted by -Luke-

  1. 1.When using Blizz action battle system trying to add respawning for enemies, i noticed by the looks of it each TYPE/ID of enemy could have a certain spawn point. But how do i make each enemy in my game respawn at the point they are to start in a given amount of time? 2.To me it gets annoying how to the enemy you are fighting randomly moves away from you and all over the place. How can i take this off but keeps the enemy attacking you? ~Thanks~Luke~
  2. It worked. Finally i get good results. The fact that i have to use Blizz which i'm not too used to isn't the best, but i can fiddle around with it to fit my needs. Thank so much Shiny and everyone else that helped =]. I'll credit everyone that helped into my game. :) :D :yes: :lol: :drool: :clap: :alright: :biggrin_002: ~Thanks~Luke~
  3. I copied the exact script and used the same enemy but no positive results. I'm starting to think it has something to do with the ABS i'm using, so i'm going to try Blizz. I'll let you know how that turns out, Thanks so much guys.
  4. Grats on 300th post. I'm Testing right now..Thanks.
  5. @Shiny-A demo with working Multi-drops. I just need a simple demo with the scripts and just one map with an enemy that has 2 or 3 working drops, and they both have a chance of getting. Thanks. @UrHappy-Thanks,I appreciate it.
  6. I still can't figure it out and i've posted this on many many forums all over. Thanks guys for the help but i'm still not getting this. Now i'm requesting a demo and i will absolutely grateful to the person who can help me figure it out and i will credit them. I am using Mr.Mo's Action Battle System so keep in mind, i don't know if that will effect how it works. I don't care if it's Tons of Addons scripts or something different. -OOPS CAN A STAFF DELETE THE OTHER 2 OF THESE IT POSTED A BUNCH I DIDNT EVEN CLICK IT MORE THAN ONE TIME-
  7. Didn't work when i did that..I'll try again i guess..
  8. So here's the code. I don't know where to put something like when it's saying to put 'when 1 then return [[1, 2, 50], [3, 15, 10], [2, 4, 5]]'. where do i put one of that with my customized info in it? :=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # Multi-Drop by Blizzard # Version: 1.1b # Type: Game Alteration # Date: 13.11.2007 # Date v1.0b: 3.4.2008 # Date v1.1b: 5.6.2008 #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= # # Compatbility: # # Compatible with RTAB and Blizz-ABS 1.70 and higher. Will most probably # cause problems with CBS-es that have the start_phase5 method modified. # # # Explanation: # # This add-on allows you to make enemies that drop more than one item. The # drops are independent, so if an enemy drops one item, he can drop another # one as well. An enemy can even have a couple of drop of the same item. # # # Instructions: # # Configure the drop database below and set up the compatibility # configuration. The compatibility ocnfiguration is only needed if you are # using RTAB. Blizz-ABS 1.70 and higher will be recognized automatically. # # # Side note: # # This add-on could have been written in less than 100 lines of code, but # full RTAB compatbility takes its piece of code. # # # If you find any bugs, please report them here: # http://forum.chaos-project.com #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= if TONS_OF_ADDONS::MULTI_DROP #============================================================================== # module BlizzCFG #============================================================================== module BlizzCFG # set this to true if you are using RTAB RTAB_USE = false # set this to true if you are using Animated Battlers in RTAB RTAB_ANIMA = false # set this to true if you are using Battle Report v1.6 by Illustrationism RTAB_REPORT = false # limit of maximum items dropped, 0xFFFF is infinite ITEM_LIMIT = 0xFFFF def self.drop_configuration(id) case id #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # START Drop Database # # Use the following template for configuration: # # when ID then return [[TYPE1, I_ID1, CH1], [TYPE2, I_ID2, CH2], ...] # # ID - enemy ID in the database # TYPE - the drop type; 1 for items; 2 for weapons; 3 for armors # I_ID - the drop item ID in the database # CH - drop chance # # You can add as many drops as you want, separate them with commas. Keep in # mind that if you set TYPE to 0, the drop is disabled and that you MUST NOT # set I_ID to 0. If an enemy is not configured here, the default # configuration from your database will be used, otherwise the default # configuration from your database will be COMPLETELY OVERRIDEN. # # Example 1: # # when 1 then return [[1, 2, 50], [3, 15, 10], [2, 4, 5]] # # Monster with ID 1 can drop: # 1 Item ID 2, chance 50% # 1 Armor ID 15, chance 10% # 1 Weapon ID 4, chance 5% # # Example 2: # # when 2 then return [[1, 1, 50], [1, 1, 40]] # # Monster with ID 2 can drop: # 1 Item ID 1, chance 50% # 1 Item ID 1, chance 40% # Full chances of drops because of repeating items: # nothing, chance 30% # 1 Item ID 1, chance 50% # 2 Items ID 1, chance 20% #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: when 1 then return [[1, 2, 50], [3, 15, 10], [2, 4, 5]] #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # END Drop Database #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: end # return normal item drop if exists if $data_enemies[id].item_id > 0 return [[1, $data_enemies[id].item_id, $data_enemies[id].treasure_prob]] elsif $data_enemies[id].weapon_id > 0 return [[2, $data_enemies[id].weapon_id, $data_enemies[id].treasure_prob]] elsif $data_enemies[id].armor_id > 0 return [[3, $data_enemies[id].armor_id, $data_enemies[id].treasure_prob]] end # no drop return [[0, 0, 0]] end #---------------------------------------------------------------------------- # dropped_items # enemy - a killed enemy # This method returns an array of all dropped items. #---------------------------------------------------------------------------- def self.dropped_items(enemy) # initialize array items = [] # get drops and start iteration through all drops self.drop_configuration(enemy.id).each {|i| # if got item if rand(100) < i[2] # add item, weapon or armor case i[0] when 1 then items.push($data_items[i[1]]) when 2 then items.push($data_weapons[i[1]]) when 3 then items.push($data_armors[i[1]]) end end} # result return items end end #============================================================================== # Scene_Battle #============================================================================== class Scene_Battle #---------------------------------------------------------------------------- # start_phase5 # This method was completely modified to support multi-drop. #---------------------------------------------------------------------------- def start_phase5 # if RTAB and Animated Battlers in use if BlizzCFG::RTAB_USE && BlizzCFG::RTAB_ANIMA # don't end battle as long as an actor is moving around $game_party.actors.each {|actor| return if @spriteset.battler(actor).moving} # see if an actor remains alive $victory = true if $game_party.actors.any? {|actor| !actor.dead?} # see if an enemy remains alive $defeat = true if $game_troop.enemies.reverse.any? {|enemy| !enemy.dead?} end @phase = 5 # set audio $game_system.me_play($game_system.battle_end_me) $game_system.bgm_play($game_temp.map_bgm) # initialize variables exp, gold, treasures = 0, 0, [] # if using RTAB if BlizzCFG::RTAB_USE && !BlizzCFG::RTAB_REPORT # dispose and setup special things from RTAB @active_actor.blink = false if @active_actor != nil $game_temp.battle_main_phase = true @party_command_window.active = @party_command_window.visible = @actor_command_window.active = @actor_command_window.visible = false [@skill_window, @item_window].each {|win| win.dispose if win != nil} @skill_window = @item_window = nil @help_window.visible = false if @help_wait == 0 end # iterate through all enemies $game_troop.enemies.each {|enemy| # if enemy isn't hidden unless enemy.hidden # get exp and gold exp += enemy.exp gold += enemy.gold # get all dropped items treasures += BlizzCFG.dropped_items(enemy) end} # limits treasures to a specific number treasures = treasures[3..BlizzCFG::ITEM_LIMIT] # if used battle RTAB battle report if BlizzCFG::RTAB_REPORT # used by battle report @exp, @gold, @treasures = exp, gold, treasures else # iterate through all actor indices $game_party.actors.each_index {|i| actor = $game_party.actors[i] # if actor can get EXP unless actor.cant_get_exp? # store last level last_level = actor.level actor.exp += exp # if level increased after adding EXP if actor.level > last_level @status_window.level_up(i) # if using RTAB if BlizzCFG::RTAB_USE # execute special RTAB commands actor.damage[[actor, -1]] = 'Level up!' actor.up_level = actor.level-last_level end end end} # add to party's gold $game_party.gain_gold(gold) # create result window @result_window = Window_BattleResult.new(exp, gold, treasures) end # iterate through all treasures treasures.each {|item| # add gained treaures to party's inventory case item when RPG::Item then $game_party.gain_item(item.id, 1) when RPG::Weapon then $game_party.gain_weapon(item.id, 1) when RPG::Armor then $game_party.gain_armor(item.id, 1) end} @phase5_wait_count = 100 end end end
  9. Okay, but when i just take the multi-script part of it, it still doesn't do anything. I copy and pasted the whole multi-script area in part2 and put it in a new script. What's the next step? What do i add or fill in to what to make the changes i need for my game?
  10. I copied all 3 scripts into my game, but i don't know how to customize it to my needs, where do i edit what enemies drop what like it's saying? Where do i add those in?
  11. That script you gave me the link to was confusing :blink: Well i'm not good at knowing how to place them and how to use scripts..If anyone could either give me a script with easy to under stand of step-by-step, or they could make a demo =] ~Thanks~Luke~
  12. I've posted something like this on 3 forums and searched all over the web but i can't find a good way to make multiple drops. When you go into database there's ONE treasure spot. Can i have a script or a link anyone? Or can someone make a demo? So i just want let's say a 50% chance of getting a sword and a 40% chance of getting a shield. And don't say to do the thing where you make two troops, i have a action battle system. ~Thanks~Luke~ :D :B): :rofl:
×
×
  • Create New...