Vibe Coding Scipts With AI

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Satatik
Posts: 34
Joined: Sat, 27. Oct 07, 21:06
x3ap

Vibe Coding Scipts With AI

Post by Satatik »

Has anyone tried making a script with AI? GPT and Claude are so advanced now... I fed GPT the MSCI scripting manual, it read the whole thing, and made a test script that does as follows:
==========
What it does
------------
This is a safe, non-cheat MSCI test script. It:
1. Gets the player's current ship with [PLAYERSHIP].
2. Checks that the ship exists.
3. Gets the ship's current sector.
4. Formats a small report string.
5. Writes the report to the in-game player logbook.
6. Also writes the same report to logfile 77777 for debugging.

Why this script
---------------
It tests several core MSCI skills from the handbook without spawning ships, changing money,
altering reputation, or touching the universe state:
- variables
- object existence checks
- object commands
- string formatting
- player logbook output
- external logfile output
- return flow
================

Anyways, this is kind of crazy to me, and I'll probably try making my own scripts in the future with this.

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”