Weapon/Armor Randomization

Hello a question about Weapon/Armor Randomization:

is there a way to show all the bonuses (hit rate %) in the item? For example when you find a generated Bronze Axe of Better Speed, the menu only shows that the attack is increasing but not HIT RATE % in the Item. In poor words, i need that in the menu appear the base stats + the traits modifications.

Thanks and sorry for the (probably) n0000b question
Never be sorry for questions!


It's not impossible, but it's more a separate script thing. And I'm sure there actually are some scripts out there that so just what you want, have more detailed statuses. Try checking the Master Script List ( http://forums.rpgmakerweb.com/index.php?/topic/73-vxace-master-script-list/ ) Or just doing a search on the forums for... well I'm not sure what.. detailed status maybe?


Either way, it's out there!
Hey there 😀 After i see the pets and summons script, i look after your other amazing scripts 😀 And now i am here 😀 So... is it possible, that i dont need a script call to add a weapon or amor with suffixes? It works great yeah, and i love this 😀 But i use this Script : http://rmrk.net/index.php/topic,44931.0.html
So i have drop rank... and let's say it by drop rank 1 i get to 50% a Axe. And if i get an Axe it is an normal axe, not Axe with Suffix xD So maybe it is possible, that the random items i get, have suffixes too? I hope you know what i mean 😀
You can try putting this below that script and seeing if it works.

Spoiler
Code:
class Game_Party  def gain_rankdrop_item(item, *args, &block)    d = rand(100)    count = 0    for i in 0...item.maidr_dropping_ranks.size      drop = item.maidr_dropping_ranks[i]      count += drop[2]      break if d < count    end    rank = drop[0] ? $game_variables[drop[1]] : drop[1]    if $data_dropranks[rank].nil? || $data_dropranks[rank].empty?      if !drop[0]        item.maidr_dropping_ranks.delete(drop)        if item.maidr_dropping_ranks.empty?          p "ERROR: Item Drop Ranks - Rankdrop for #{item.class} #{item.id}: '#{item.maidr_name_3hj1}' fails since no items exist with the rank requested."          item.maidr_dropping_ranks.push(drop)         else          gain_rankdrop_item(item, *args, &block)         end      else        p "ERROR: Item Drop Ranks - Rankdrop for #{item.class} #{item.id}: '#{item.maidr_name_3hj1}' fails since Variable #{drop[1]}: '#{$data_system.variables[drop[1]]}' is equal to #{rank} and no items with that rank exist."      end    else      real_drop = $data_dropranks[rank].sample      item.maidr_last_type = real_drop / MAIDR_MAX_DATABASE_IWA       item.maidr_last_id = real_drop % MAIDR_MAX_DATABASE_IWA      add_weapon(item.maidr_last_item.id, 1) if item.maidr_last_item.is_a?(RPG::Weapon)      add_armor(item.maidr_last_item.id, 1) if item.maidr_last_item.is_a?(RPG::Armor)      add_item(item.maidr_last_item.id, 1) if item.maidr_last_item.is_a?(RPG::Item)    end  endend
Edit:
See below 😀 I have do something wrong 😀 But now I have a second request 😀 See below too xD
Oh nice it works 😀 Great thx 😀 Now... the last request maybe? 😀 Make it compatible with Yanfly Event Window? 😀 I sent you the script too... same Problem with this xD
Hello Vlue! And thanks again for all the answers infact those were asked before I found the 1.6.7 of the WA Randomization Script which I find simply......incredible. But here I return with another question (one day I'll learn Ruby I hope and never bother again 😀 )

We are trying to make a game which of course has weapon randomization, but we are having troubles because we cannot assign a specific PREFIX / SUFFIX according to the Player Level... Which the Galv's Random Loot 1.0 does but of course it doesn't recognize and translate notetag values so when you get an item it doesn't say anything... so I'm asking you brave RMVXA coders... is there a way to "merge" the two scripts? If it is possible I think I'll be able to sleep again 😀 😀

And I'll offer beers 😉
Hey Vlue, when I use the script the extra names are added on from prefixes and suffixes but not the stats. Is there anything that I can do to fix this?
Hello Vlue! And thanks again for all the answers infact those were asked before I found the 1.6.7 of the WA Randomization Script which I find simply......incredible. But here I return with another question (one day I'll learn Ruby I hope and never bother again 😀 )


We are trying to make a game which of course has weapon randomization, but we are having troubles because we cannot assign a specific PREFIX / SUFFIX according to the Player Level... Which the Galv's Random Loot 1.0 does but of course it doesn't recognize and translate notetag values so when you get an item it doesn't say anything... so I'm asking you brave RMVXA coders... is there a way to "merge" the two scripts? If it is possible I think I'll be able to sleep again 😀 😀


And I'll offer beers 😉
Sounds troublesome! Remind me after June~

Hey Vlue, when I use the script the extra names are added on from prefixes and suffixes but not the stats. Is there anything that I can do to fix this?
Make sure your prefixes and suffixes are set up right (spelled right and all), if you are using percentage increase, items with a base stat of 0 will see no improvement (300% of 0 is 0) and if the base stat is too low, then you might also not see an improvement (5 +10% is 5.5 which makes 5)
Hey Vlue, I love this script, but i ran into a problem.

When i have an item drop from a monster, the random stats work perfect, but when the item is found from a chest in a dungeon or where ever. it doesnt random the stats.
Are you using the script calls add_weapon and add_armor?


The event commands won't randomize the item.
Fixed, Im starting to think i should sleep more often, i cant believe i missed that
Very good script and the best randomizer I found so far!

Extra thanks for the random mob drops, randomized item shop and color options!

But I kinda run into a problem, not with just your randomizer, but with any other similar scripts.

So, almost anyone who wants random weapons and armors also wants set items. Unfortunately, not a single set item script works with any instance item scripts. >.>

There is Dekita's Set items script, but that would break my equip scene, which I am not planning to change.

The best Set Item script I found was made by modern algebra and is called Set Bonuses (v1.0.0), because it is easy to understand and set up. But as I mentioned already, it wont work on instanced items, only on default ones.

Is there a way to mix these 2 scripts somehow? I tried it, but could not manage to do it. 

Because the extra things I gave special thanks earlier would make this a perfect solution, easy coloring, and they could drop from monsters and even from a "gambling shop".

Any help would be appreciated! Thanks in advance!
If you link the script in question I can take a look when I get a chance.
Ohh, sure, here it is:

http://rmrk.net/index.php?topic=48577.0

And direct download:

set bonuses.txt

If you cant combine it in any way, would it be possible to implement set item features into your script? *-*

Ohh and while Im here, I just remembered that I got another script which would be awesome if it would give randomized items too.

But this one is much more complicated, thou I guess you need to edit the gained items only, so maybe it is not that complicated as I think it is. 

Anyway, here it is:

http://forums.rpgmakerweb.com/index.php?/topic/17560-crafting-script-v29a-updated-62814/

And thanks!
Anyone tried it with Crafting Script?

http://forums.rpgmakerweb.com/index.php?/topic/17560-crafting-script-v29a-updated-62814/

Be cool if it worked with it 🙂
Wheee.

Okay, to make this script work with Set Bonuses, put this below both scripts:

(Need to get updated version of W/A Randomization as well (1.6.7a or greater))

Spoiler
class MAESB_EquipmentSet def set_complete?(eqps = []) weapons = eqps.collect {|item| !item.nil? && item.is_a?(RPG::Weapon) ? item.original_id : nil } armors = eqps.collect {|item| !item.nil? && item.is_a?(RPG::Armor) ? item.original_id : nil } return @weapons.compact.sort == weapons.compact.sort && @armors.compact.sort == armors.compact.sort endend
and to make this script work with (Oh man, it actually is just called Crafting Script) Crafting Script, put this below both scripts:

Spoiler
Code:
class Crafting_Details_Window  def success_rewards    RPG::SE.new(*Success_Sound).play    item = $game_party.add_weapon(@recipe.crafted_item.id, 1) if @recipe.crafted_item.is_a?(RPG::Weapon)    item = $game_party.add_armor(@recipe.crafted_item.id, 1) if @recipe.crafted_item.is_a?(RPG::Armor)    item = $game_party.add_item(@recipe.crafted_item.id, @recipe.crafted_amount) if @recipe.crafted_item.is_a?(RPG::Item)    @result_exp     = @recipe.earned_exp    @result_message = Result_Msg    @result_item    = item    @result_amount  = @recipe.crafted_amount    $craft[@craft_type].gain_exp(@result_exp)  endend
I actually managed to make the crafting script work with this on my own, but still thanks!

And even bigger thanks to the Set Bonuses patch, now my equip scripts are finally completed for my game, yay!

And I actually got 2 questions about this script:

1. What is ':rarity' stands for? I couldn't see any examples in the demo for it, and couldn't really managed to get what that supposed to do. It says it's an arbitrary number, but that's it. So, is that something useful?

Is it connected to the first 4 affix setup where it says "#Rarity" in the comment?

2. What does 'POOL_RARITY' do? I suppose this got something to do with the above thing in question.

My theory is, that POOL_RARITY gets the rarity number from that :rarity symbol, and the affix on the weapon can be any affix with :rarity in their setup. But I'm not sure about it, so I ask.

If that theory is true, could it be possible to make 4 different sections in the affix setup, 1 for weapons, 1 for armors, 1 for accessories, and 1 extra for all of them? So, something that is supposed to be on a weapon only, can't get onto an armor, etc. 

This would make it possible to make a completely random drop system without note-tagging my items till I drop.

Just by testing the script I made 100+ affixes, and I intent to make many more to use within my game. Inserting 100+ note-tags for 1 item is not really fun, let alone do that for the other god knows how many items I will make.

Or would it be possible to make a note-tag that could add a whole bunch of affixes with a random chance to select any of them?

That would really help me, and I guess, most of us, with setting up our database properly without flooding the note-box of all of our items.

Also I did some work and made some compatibility patches to some scripts and most (if not all) of them includes your scripts.

So, I was just wondering, can I post them (the instructions on how to make them work with other scripts)?

Anyway, I will PM you the details, don't want to get too off-topic here.

Thanks again for the help!

Ohh, and in this script, at the #Weapon Suffixes part, you wrote "feature" instead of "features" for all of the affix setup, which made me quite a headache and confusion when I first tried your script. 

You should fix that before someone hastily assumes (like I almost did, sorry 😛 ) that this script is not working.

Edit2:

Okay, tried the snippet you wrote for the Set Bonuses, but it won't work for me.

Updated your randomization script, copied that snippet below both scripts in a new slot, and it didn't work.

It also broke the Set Bonuses script completely, unfortunately.

Before I did all of this, the set bonuses worked at least on regular items (adding the items the regular way), randomized items (adding with your script call - add_armor & add_weapon) didn't work (which I wanted to fix originally). 

Do I need to do something else or did I miss something? *-*
All :rarity determines is which color to use from an affix, an affix with a higher (or lower, i cant' remember) will apply it's color instead of another's affixe's color.


POOL_RARITY instead of going through affixes one by one and picking the first one that passes, it adds all affixes to a hat picks a random one from it.


I'll definitely look into an easier way to apply affixes, because the current method is indeed a pain...


I have no problem using Set Bonuses with Weapon/Armor Randomization with the patch with both non-random and random weapons/armors. The script order I used was W/A Random, Set Bonus, Patch.
Ok, after a lot of testing, I found the culprit!


So, if I got anything else equipped other than the set items themselves, the bonuses will NOT apply, which is a problem actually. *-*


Any way to get around this?

Original thread: https://forums.rpgmakerweb.com/threads/weapon-armor-randomization.14771/