Why try to mess with the drop rate, when you can just use JJ's CP and use the spawn command to get whatever item you want?
Anyways..besides that..all you gotta do with the drop rate is find the unit id in the jass file and search for the items when killed. For example..legion has an item id of H04R. Then, after searching through the jass file you come up with this.
Code: Select all
function Trig_Legion_Actions takes nothing returns nothing
set udg_TempDropInt = GetRandomInt(1, 200)
if ( Trig_Legion_Func002C() ) then
set udg_TempDropInt = GetRandomInt(1, 1000)
if ( Trig_Legion_Func002Func002C() ) then
call CreateItemLoc( 'I04L', GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Legion_Func002Func002Func001C() ) then
call CreateItemLoc( 'I00T', GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Legion_Func002Func002Func001Func001C() ) then
call CreateItemLoc( 'I00U', GetUnitLoc(GetTriggerUnit()) )
else
endif
endif
endif
else
if ( Trig_Legion_Func002Func003C() ) then
call CreateItemLoc( 'I04M', GetUnitLoc(GetTriggerUnit()) )
else
endif
endif
endfunction
This is the trigger that determines which item is dropped when legion dies..now looking at this is pretty clear, that when he dies, theres a chance that he will drop either one version of three swords (I04L, I00T, and I00U), or Legions Armor (I04M). Now, if you wanted him to just drop legions armor, just rearrange the code a bit to
Code: Select all
function Trig_Legion_Actions takes nothing returns nothing
set udg_TempDropInt = GetRandomInt(1, 200)
if ( Trig_Legion_Func002C() ) then
set udg_TempDropInt = GetRandomInt(1, 1000)
if ( Trig_Legion_Func002Func003C() ) then
call CreateItemLoc( 'I04M', GetUnitLoc(GetTriggerUnit()) )
else
endif
endif
endfunction
(Please do note that I dont study jass..so i know this trigger can be compacted and may not even work, but im just trying to give ya the general idea of what needs to be done.) Anyways, when ya get that done, just reimport back into the map..and now when legion dies, he will only drop the armor. You just have to do that for whatever boss you want to drop what item..or you could just find a weak but numerous enemy, such as faceless ones, and change their item drop to drop boss items instead.
Anyways, to get the unit id just extract the unit file (war3map.w3u), go into world editor, open the object editor, get onto the unit tab, click file, then import unit settings. (And the same for items, except its war3map.w3t.)