Jump to content

Recommended Posts

Hello, i need some help with making of mod.

I tried writing a mod that would add a short text under each Volt goat to indicate which herd it belongs to.
I think the idea is quite useful, because the goats in an oasis often get mixed up, and you could accidentally kill an entire herd without even realizing it.
I've never written a mod before, but I have some programming experience. I turned to a neural network for help, outlining the general algorithm:
1. When a goat appears in the player's loading area, the mod should retrieve the "herd" object and write it to a table, incrementing the herd counter by 1.
2. When the next goat loads, if it has a different herd, add that herd to the table. If the goat is in a herd already in the table, it simply displays the text with the herd number below it.

But I ran into a problem: it's impossible to retrieve the herd object from a client-side mod because it only exists on the server.

Please tell me if my idea can be implemented at all, and if so, how. I'd be grateful if you could point me to a place where I can read about modding for DST in an accessible manner. (I've searched this forum, but I couldn't find anything that addressed my problem. Also, English isn't my native language, which is a bit of a problem.)
 

 

modinfo.lua modmain.lua

Edited by Wanderer97

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...