Which AI should in my game?

Straight to the point: i am making a game, where any message that a player writes in chat get sent to a language model, and then the AI turns the message into code.

Examples:
Player 1: “I cast fireball!” a fireball appears
Player 2: “I am thirsty” everything gets filled with water
Player 3: “oh shoot!” recieves a gun

Kinda like that. Except there’s a MASSIVE problem, many infact.
First of all - i am broke as hell;
Second of all - i know NOTHING about computer science;
Third of all - i cannot host my own servers for some models that require it, it refers to the first problem - I am broke as hell.

What do you guys think?

(Also, it’s my first topic, so don’t get mad if it’s in the wrong category or something)

3 Likes

Good advice would be not to think big at the start. Learn first, then think big. Leave the idea and work on smaller ideas.

3 Likes

As the other one says, you should start with more easy idea. For example, build AI setting to write suited codes for your game.

2 Likes

Its good to have big ideas as it shows you want to achieve something and reach a final goal, it shows you as a creative person, but like the others said right now at this early of a development stage you are at you should focus on learning and less on a full game.

What personally helped me is watching basic coding tutorials and then just fidgeting around with the code engine for a long time, and after a while of messing up you get things right and learn how to do them.

2 Likes

I guess you are right, i probably started game development too early, even tho i made one game that got some fans, probably should learn a bit more.

I’d say there’s no such thing, you can start anytime you want, it’s just what you can make that’s limited.

what you’re trying to make right now involves a lot of HTTP systems and even I’ve never tried something like it, so it is hard and almost impossible for a beginnerr. But I’m just replying to say you did not start too early, I learned Roblox LuaU from complete scratch and now I am making scripts that I would’ve thought I’d never make when I first started. So aslong you keep trying and learning new things while having fun, you can eventually make almost everything.

2 Likes

Have you tried the roblox AI?

To the best of my knowledge, it is completely free. Play around with the system prompt and the temperature to try to get it to generate pre-defined commands would be how I would approach this.

If you make the AI have a set seed, the same prompt will have the same output always, enabling you to better debug edge cases.

3 Likes

It’s not impossible to make but may require you to be somewhat advance in scripting to make. You can use the Roblox built-in text generation API but I don’t recommend. If you want to use the Roblox built-in API it’s free which is good however you have to give strict instructions as to how you want to have the output structured and may require tons of fine-tuning or it will hallucinate.

Or you can use Open AI API, this is the better solution but it’s paid I have made a simple video demonstration below. But it’s a little buggy and hallucinate, if you fine tune it it will be excellent, this is just a prototype but it’s possible to create something like you said above. Open AI API have a feature called “Function calling” or “Tools” that can have the LLM output a structured output so that it outputs code that the game can understand.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.