Unreal Engine 4 Tutorial - Weighted Loot Table

Unreal Engine 4 Tutorial - Weighted Loot Table

Ryan Laley

4 года назад

21,952 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ryan Laley
Ryan Laley - 10.03.2020 13:12

EDIT: in the Choose Loot function you should use a less than or equals (<=) instead of a less than (<) comparison. This will solve the rare occurrence of a null response.

Ответить
myura
myura - 15.05.2023 14:58

your content is help me so much but opening music is way too loud

Ответить
حاتم إسماعيل
حاتم إسماعيل - 06.03.2023 17:05

Did you made the video you were talking about?

Ответить
Fabio Silva
Fabio Silva - 21.01.2023 17:09

good stuff. thank you Ryan

Ответить
Trayvon Ray
Trayvon Ray - 30.09.2022 18:59

Great tutorial

Ответить
Z L
Z L - 07.09.2022 22:23

Great Video! Helped me out a lot! Thanks (:

Ответить
Rich Makes Games
Rich Makes Games - 28.06.2022 07:40

This worked great! Thanks! For some reason I could not get the last item in the list to spawn. The result was always -1 , even if I set everything else to 0 and the last one to 100. The Only way I could get it to work properly was to add 1 extra item to the list with 0 chances, and it works perfectly! No idea what I did wrong, but I thought I'd share this in case someone else was having a similar problem. (I was using Integers instead of floats, maybe this was the issue?)

Ответить
Kingpoki
Kingpoki - 19.05.2022 19:18

How would i go abour spawning the loot from a string?

Ответить
Michael Sparkson
Michael Sparkson - 15.05.2022 11:04

Not sure what Ive messed up but it just drop the 1st item on the list every time.

Ответить
Sasha Nodia
Sasha Nodia - 19.03.2022 04:16

Why is it Float and not Integer? Is there anything that Integer would break?

Ответить
Ric_was_here
Ric_was_here - 14.02.2022 22:30

As a newbie I love this, any chance of doing the datatable version with loot dropping into the world? Thx! 👍🏼

Ответить
Christopher Seander
Christopher Seander - 27.10.2021 22:43

This is exactly what I was looking for, thanks for sharing

Ответить
Dawn Rigel
Dawn Rigel - 26.08.2021 22:01

Was able to follow along fine until the end. For some reason, I can't add the Loot Table actor as a component to my enemy (doesn't show up when I search for it). I can drag and drop the Loot Table from content browser, but I guess that only does so as a child, which is causing some connection issues. Don't know if this is an engine difference or not, but I'll try and manage!

2 seconds later
Sees that I'm using Actor instead of Actor Component :)

Ответить
Ike Broflovski
Ike Broflovski - 17.08.2021 02:57

Thank you for the tutorial. I would be very happy to see it not with a string, but with items (weapons etc)

Ответить
Matthew Wilding
Matthew Wilding - 27.03.2021 00:14

Ended up making it a map with classes:float
Selected my BP_PickupBase as the class then added the children pickups to the map.
Then connected the output to spawn actor connecting the class output directly to it.
Worked perfectly, thanks so much.

Ответить
Darth Biomech
Darth Biomech - 21.03.2021 17:00

It feels like this function will be weighted to output less of the items in the first part of the map table, and more of the items in the second part of the table, regardless of their actual value, since the probability of the random number being less than the map member's value is lower when it's the first in the list compared to when it's last in the list (and to add to that, the later list members have less chance to be selected because there are more items before them that can snatch away the selection, which makes the whole thing even more uneven).

Ответить
Jestersheepy
Jestersheepy - 17.02.2021 21:33

If you had two items that shared the same amount of tickets, this will always choose the first of the two in the list. Rather than outputting the first true result it could build a second array of 'true' results and randomly pick a winner from that.

Ответить
RikkicideZams 115
RikkicideZams 115 - 12.02.2021 13:15

Follow Up?

Ответить
J B
J B - 12.02.2021 00:32

is it possible for a random item/items in a container to respawn after either x amount of time or when the player is x distance away from the container? they can also be different random items.

Ответить
Jwalin Adhyaru
Jwalin Adhyaru - 29.01.2021 10:25

How can I make a karma system where doing certain tasks will increase the chances for the drop or much rare items and doing bad stuff a lot might end up in getting no loot at all ?

Ответить
Assassin0314
Assassin0314 - 10.11.2020 12:46

im new to unreal, and your tutorials are very practical and useful!

Ответить
Emin İmamoğlu
Emin İmamoğlu - 29.10.2020 18:32

Great tutorial. Thanks

Ответить
MadPolygon
MadPolygon - 28.10.2020 05:19

in your case, if you changed up the values, wouldnt you sometimes get more loot when the condition meets on more than 2 items?

Ответить
CaptainSavage
CaptainSavage - 19.07.2020 01:44

Hi Ryan, will you be making a video about dropping loot into the world (perhaps from monsters)? Still very interested in seeing that. Thanks!

Ответить
Enrique Gándara
Enrique Gándara - 30.04.2020 18:19

Hey thanks for this video! One question, is this supposed to be the proper way to get a fair randomness? I mean, wouldn't the last objects on the map list have less chances of getting chosen due to the iteration order?

Ответить
Ty_teynium
Ty_teynium - 22.04.2020 19:08

Hello Ryan! Can you do something on finding the best way to Sort an inventory and by different categories like most amount or alphabetical order or rarity and price?

Ответить
ihusitusi
ihusitusi - 22.04.2020 16:42

Would you like to cover how to create weapons with different parts randomized on the weapon?

Ответить
ihusitusi
ihusitusi - 22.04.2020 16:28

pogchamp

Ответить
Ax Vex
Ax Vex - 22.04.2020 16:11

Follow up Please 😁👌

Ответить
REE ANIMATION & GAMING
REE ANIMATION & GAMING - 22.04.2020 11:26

This is fantastic... So far I have just put loot into a list, and if I want an item to be more rare, I was adding more of all the other items, getting a super long list in the end.. I will give this a shot, Thank you very much!!

Ответить
Mr. Smith
Mr. Smith - 22.04.2020 07:52

Your channel is treasure chest with loot.

Ответить
Xanti Shayde-Walker
Xanti Shayde-Walker - 22.04.2020 05:55

Plz do the Second Video to handle spawning of items in the world.

Ответить
Sam Fuller
Sam Fuller - 22.04.2020 05:00

It's actually kind of insane how perfectly this resolves an issue I've been having with a randomized limb-damage mechanic I've been working with for the past couple days. Yesterday I finally came up with a solution that worked for me, but it's nowhere near as easy as the logic you have for this loot drop system! Thank you so much for sharing this, I can't wait to replace my logic in favor of this! Not to mention I had no idea about actor components, so that's a nice bonus!

Ответить
Ex_Draco
Ex_Draco - 22.04.2020 04:17

It's simpler than I thought

Ответить
Xperto
Xperto - 22.04.2020 03:38

I just got a random notification for this video

Ответить
I I
I I - 22.04.2020 03:37

Hi, Ryan! Can you make tutorial how to loot dead bodies in game? For example freshly killed soldiers or zombies to take a gear like backpacks, guns, ammo etc away from them to move stuff from they inventory to players inventory? That could be very nice! :) :) :) :)

Ответить
djshiro
djshiro - 10.03.2020 05:01

Having them show on ground would be great

Ответить