HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can i assign loot tables on a unit without having to edit units already put on map?

07-24-2003, 07:34 AM#1
Fragmentation
Ok simply

I would like to know if there is a way to set items that drop from a unit up without having to edit a specific units loot table that is already placed on the map?

hope someone can help
07-24-2003, 02:07 PM#2
Ak47_Type_R
I'm not sure what what type of item drop table you are looking for. Like for Rpgs or Aos type maps but here is a general idea of a trigger based loot table. >.<

----Create Variable (LootTable) as integer----

Events:
-Unit - A unit Dies

Condition:
-(Unit-type of (Dying unit)) Equal to Footman

Actions:
-Set LootTable = (Random integer number between 1 and 10)
-If (LootTable equal to 1) then do (Item - Create Claws of Attack +15 at (Position of (Dying unit))) else (Do nothing)
-If (LootTable equal to 2) then do (Item - Create Tome of Experience at (Position of (Dying unit))) else (Do nothing)
-If (LootTable equal to 3) then do (Item - Create Ring of Protection +2 at (Position of (Dying unit))) else (Do nothing)
-If (LootTable equal to 4) then do (Item - Create Ring of Protection +2 at (Position of (Dying unit))) else (Do nothing)

This trigger just pretty much means if a footman dies he will have a chance of dropping these:
10% Claws of attack +15
10% Tome of Experience
20% Ring of Protection +2
60% Nothing is dropped

Thats just basically how you can put a trigger based one in. I'm not sure its 100% percent correct. I'm just typing the trigger from top of my head. =) (yes - my head hurts)

Hope it helps you out NightBlade. =P

<Surfing the web is so much easier than the ocean>
07-24-2003, 02:26 PM#3
Vexorian
Perhaps if you are not going to use point value you can set a different point value for each unit type and then create an item type array


Something like Create Item(Point Value of (Triggering unit))
07-24-2003, 10:50 PM#4
Fragmentation
yes type r that should work

and I may use yours

I need to know one final time

see you know if you put a unit on the map and you double click it, you go to items dropped tab and then you set up %values of how common or rare an item drops from that unit, and you set what items drop too

is there no way to do this without using triggers?
07-24-2003, 11:55 PM#5
Ak47_Type_R
Yeah, I know about that. It's also possible to set up loot table in the Advanced>Items Table. I think it can only be used on units that preset on the map. I can't really think of a way to set up loot table without triggers. The trigger way seems to be the most efficient in my oppinion but I hope it works for you. =)

You can set units into group and say if one of them die they drop the same kind of loot the others in it's unit group. You can do it either by unit level, unit - set custom value, or variable. But all in all, it uses triggers. =P

<Pay your taxes, it funds my food stamp. I think>:yup: