Changes for page Looting System
Last modified by Alexandros Mloukie on 2026/01/26 19:12
From version 7.3
edited by Alexandros Mloukie
on 2026/01/20 16:37
on 2026/01/20 16:37
Change comment:
There is no comment for this version
To version 4.1
edited by Alexandros Mloukie
on 2026/01/20 01:57
on 2026/01/20 01:57
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,22 +4,26 @@ 4 4 5 5 ---- 6 6 7 -(% class="wikigeneratedid" %) 8 -[[image:Looting Manual.png]] 7 += 1 - Looting Process = 9 9 10 -= 1 - Enemy Inventory = 9 +== 1.1 - Enemy Inventory == 11 11 12 - Everyenemyinthegame needsto haveaccessto theirveryown inventory.Thiscan probably use the {{info}}MAWInventoryComponent{{/info}} already usedfor the player,thoughthereare gonna besome extrathingsto it. Theinventorywillbe populated withitemson __enemyspawn__ insteadof on-death. Theitemsthatwilloccupy the inventory willbedefinedthrougha {{success}}DataTable{{/success}},sodesigners can easilytweak values lateron.11 +For looting to be possible, the enemies need to have their own inventory components, similar to the ones the player has. This inventory also has to be populated with the enemy drops, which must be **changeable later using a designer-friendly approach**. 13 13 14 -== 1.1 - Enemy Loot Data Table == 13 +{{info}} 14 +My suggestion would be the use of a Data Table, where each enemy will have an entry that holds an array of ItemStacks. The appropriate Data Table entry is then used on the enemy's to populate the enemy inventory. 15 +{{/info}} 15 15 16 - Thelootentriesstruct that will fill the {{success}}Loot Data Table{{/success}} willbe in the following form:17 +== 1.2 - Loot Display == 17 17 18 -(% class="table-bordered" %) 19 -(% class="active" %)|=(% style="width: 140px;" %)Variable|=(% style="width: 170px;" %)Type|=(% style="width: 852px;" %)Description 20 -|(% style="width:140px" %)Item|(% style="width:170px" %){{info}}FItemStack{{/info}}|(% style="width:852px" %)The item that will be added to the enemy inventory. 21 -|(% style="width:140px" %)DropWeight|(% style="width:170px" %){{success}}float{{/success}}|(% style="width:852px" %)The chance that this item will be added to the enemy inventory. The value must be between 0 and 1 (mapped to 0% - 100%) 19 +When interacting with the corpse of an enemy to loot them, both the player and enemy inventories must be displayed side by side: 22 22 23 - Theenemyusesa {{info}}[[Data TableRow Handle>>https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Engine/FDataTableRowHandle]]{{/info}}to define which entry in the Data Table they will be using to populate their inventory.21 +== 1.3 - Item Movement == 24 24 25 -= 2 - = 23 +With the looting engaged, the player can now move items from the enemy's inventory to their own. Items are only moved if they can fit in the inventory. 24 + 25 +* Should the player attempt to move an item but ends the interaction with the enemy corpse, the item is not moved and retains its original place on the enemy's inventory. 26 +* Items cannot be moved from the player's inventory to that of the enemy's. One-way only. 27 +* Items cannot be placed onto the toolbar directly from the enemy inventory. 28 + 29 +[[image:Looting Manual.png]]