COMMUNITY FORUM

Different prices on Horses

Forum Overview >> Scripting

CategoryScripting
Created28.04.2025 10:51


Dennis Ordon (Mrdpro) 28.04.2025 10:51
I'm looking for a way to make a Script that simulates Horse genetics, mening that if i buy a Horse, then after a few month, i would get it scanned and checked by a doctor, and if the Horse has good genetics, the saleprice would go up, but if it has bad genetics, it would drop in price.

My ideer would be somthing like, check by doctor avalible after 3 month, cost 500 per horse (adjusted if to low/high), this could make price go up a litle but never below default price, and required to enable the "Scan" feature after 6 month, where the price could take a big jump to a premium price, or below default 6 month sell price.

I think this script would bring Horses a litle more into the game then just "part of a nice ranch" thing.

I know programming but only very little of LUA, tried the Dev Power Tool to get tables and so on, but cant find anything about how tables and functions are hooked together, and zero about adjusting animal prices individually.

So i could use a sparring partner on this one, or if someone wanna make the script and take credit for it, fine by me, as long as it fulfills the ideer behind the consept :)


Note: Log in to post. Create a new account here.