Searimaliis Posted May 18, 2023 Report Share Posted May 18, 2023 I want to be able to give the player an amount of resources after they have researched (or something like researching including the delay and cost) something, and I want it repeatable, like the market. How would I do this? Quote Link to comment Share on other sites More sharing options...
Gurken Khan Posted May 18, 2023 Report Share Posted May 18, 2023 Just guessing until someone more knowledgeable comes along: did you look into the trickle mechanics? Don't know if you can set it to "100y every 1min" or something. Quote Link to comment Share on other sites More sharing options...
Searimaliis Posted May 18, 2023 Author Report Share Posted May 18, 2023 I need it to be a once per player interaction, and it takes resources every time. What I'm trying to do is make a mod that changes default 0AD to around 1600AD, I have powder (gunpowder) as a resource that you should be able to manufacture by clicking a button in the building GUI, making it act like a research or training troops. Quote Link to comment Share on other sites More sharing options...
Stan` Posted May 18, 2023 Report Share Posted May 18, 2023 9 minutes ago, Searimaliis said: I need it to be a once per player interaction, and it takes resources every time. What I'm trying to do is make a mod that changes default 0AD to around 1600AD, I have powder (gunpowder) as a resource that you should be able to manufacture by clicking a button in the building GUI, making it act like a research or training troops. You should look at how the barter component works in simulation/components/Barter.js, probably a little bit at guiinterface, and very likely in gui/session. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.