← Back to all addons

Random World Item

Posted by Mr.Titan on Dec 30, 2024 at 8:40 PM

FeatureExperimentalGameplay
💡 6

It’s a simple script that add items in the world to be pickedup. It also includes a “random respown” possibility.

It’s a copy of the “chest” script, so if it makes it easier, copy “chest” object and past this script and remove the “chest” script.

Extra notes:

  • “Respown Odd” set to 0 it will make no respowns.
  • Set the “Box Collider 2D” to “Is Trigger” if you want to avoid phisics.

💬 Comments (27)

FTLJustin Dec 30, 2024 at 09:29 PM
Love it! Great job!
💯 1
Gyvr Dec 30, 2024 at 09:33 PM
Very useful!
💯 1
SvanDark Jan 06, 2025 at 02:10 AM

This is very good, thank you!

I wonder what those stuff are tho.. 🤔 (hopefully we can see what it is soon lol)

Mr.Titan Jan 07, 2025 at 10:56 PM

Ah! Glad you asked 😅 Left side is a Potions Station, i made so that you meed specific stations to build specific items (ex: smith station, smelting, cooking pod, scroll station,…)

Top right is a farming system, basically when there is no “farm” it has a odd to generate it again, and if so, it fills the “flag” has true. Thought its always the same vegetable.

SvanDark Jan 07, 2025 at 10:59 PM
Ah gotcha, if i may ask, will you share those later on? 👀
SvanDark Jan 07, 2025 at 11:00 PM
Because it seems very interesting honestly
Mr.Titan Jan 07, 2025 at 11:00 PM
Sure thing!
SvanDark Jan 07, 2025 at 11:00 PM
Wohoo! also one more thing
SvanDark Jan 07, 2025 at 11:01 PM
You showed a day/night cycle a while ago, are you planning on adding this here? 🤔
SvanDark Jan 07, 2025 at 11:01 PM
sorry for so many questions, i’m just inlove with your work
Mr.Titan Jan 07, 2025 at 11:02 PM
Thats fine! You mean when will i share it publicly in the add-ons?
SvanDark Jan 07, 2025 at 11:03 PM
correct
SvanDark Jan 07, 2025 at 11:03 PM
i assume you’re gonna add it eventually, but just wondering if you maybe know when haha
Mr.Titan Jan 07, 2025 at 11:07 PM

Oh! I thought I already did but it seems i didn’t!

Sorry, I’ve deleted it from my project.

BUT i will make a day cicle, but without lights, just sort of darkening the camera. That i can share!

Mr.Titan Jan 07, 2025 at 11:09 PM
Basically most of the system that Skyrim has, i will do: skill tree, map, navigation map, abilities, AI follower, …
SvanDark Jan 07, 2025 at 11:10 PM
Skill tree..
SvanDark Jan 07, 2025 at 11:10 PM
Now THIS is to my liking, i can’t wait for you to upload those here (if you do)
👍 1
SvanDark Jan 07, 2025 at 11:10 PM
Gotcha tho, thank you so much!
Mr.Titan Jan 07, 2025 at 11:20 PM
Will do!
Chrissy Jun 30, 2025 at 10:11 PM
super noob here, and this add-on is the first I’m trying to add to my mythril2d project (clean project) I’m getting this error code: Assets\Mythril2D\Core\Runtime\Scripts\Interactions\CollectableInteraction.cs(7,43): error CS0738: ‘CollectableInteraction’ does not implement interface member ‘IInteraction.TryExecute(CharacterBase, IInteractionTarget)’. ‘CollectableInteraction.TryExecute(CharacterBase, IInteractionTarget)’ cannot implement ‘IInteraction.TryExecute(CharacterBase, IInteractionTarget)’ because it does not have the matching return type of ‘Task’. tried a couple things but none worked to resolve it.
Mr.Titan Jul 01, 2025 at 05:44 PM

This was a 2.* version, not sure what are the changes in the new version that would affect this.

If you find the solution please share here.

You can always ask for help in the general chat

Gyvr Jul 01, 2025 at 08:12 PM

Here is a quick attempt at making it work with 3.0.

Mostly made the CollectableInteraction use Task<bool>, as it’s now required for all interactions, and updated Collectable.TryOpen() to be async

Chrissy Jul 01, 2025 at 08:24 PM
whoa thanks you guys
blobnp 1
Gyvr Jul 01, 2025 at 08:24 PM
I didn’t try it that much, and some things might not work
Chrissy Jul 01, 2025 at 09:36 PM
Np man, it’s crazy you are responsive on a national holiday! Happy canada day!
🍁 1 🇨🇦 1
Gyvr Jul 01, 2025 at 09:40 PM
Always! Gotta make sure the service I provide holds up to the ⭐⭐⭐⭐⭐ rating lol
😂 2
Zuko Dec 03, 2025 at 12:55 AM
@Chrissy it worked??

Want to continue the conversation?