Project1

标题: 关于用AI写插件 [打印本页]

作者: 阿尔卑斯    时间: 2026-4-30 07:19
标题: 关于用AI写插件
不稳定。需要一个AI平台已经喂了RMZ的脚本框架,才会产出正常的插件。否则你校正都要费很大精力。
变得好像你为AI改BUG。
作者: 阿尔卑斯    时间: 2026-4-30 07:22
我试着用千问去写一个插件,实现一个初始选人的窗口。结果各种问题,这个需求的逻辑并不复杂。
但AI不管引擎的脚本框架,乱写乱造,一堆函数名看着符合框架,但并对不上。
在确认问题的方向上也很难度。

就是不稳定。运气好一遍就出了你需要的功能。运气不好一整天都在绕胡同。
作者: 灯笼菜刀王    时间: 2026-4-30 10:02
本帖最后由 灯笼菜刀王 于 2026-4-30 10:35 编辑

让AI帮你写插件 X
让AI替你写插件 √

我有个朋友, 用AI写威信小游戏, 让我帮忙

我直接用XP写完整的执行脚本(毕竟XP熟练度最高嘛,笑) 就是这玩意

然后他丢给AI去改成威信小程序的执行代码, 分别使用了DS(分块搭建框架), 元宝(搞互动UI), 扣子(加功能)

花了好几天, 除了修BUG, 大部分时间都在教AI要用符合碳基生物的思考逻辑思考, 笑,  举个栗子, 旋转270-360度, 碳基生物的思考方向是顺方向转到原位, 而硅基生物是反向转270度回去... 摊手


当然, 这个旋转问题还是直接改代码更省事, 所以说AI只能替你写出大体框架, 细节要自己去调整, 否则要浪费大量时间在上面兜圈子

最后发现AI最好用的地方是搞审核认证标准这块, 我写的代码审核不让过, 丢给它改一改分分钟达成审核要求....  估计审核也是用AI吧, 用魔法打败魔法这一块




作者: 清澈淌漾    时间: 2026-4-30 11:09
本帖最后由 清澈淌漾 于 2026-5-1 10:31 编辑

Create an RPG Maker MZ plugin that implements an "Independent Items" system:

1. Any item, weapon, or armor with a note tag <Independent Item> becomes an independent item when obtained.
2. Each independent item instance has a unique ID starting from 10000, stored in a dedicated object in Game_System:
   {
     id: uniqueID,
     type: "item" | "weapon" | "armor",
     originalId: original database ID,
     data: { custom attributes, e.g. atk, def, gold, can be positive or negative, randomizable }
   }
3. The unique ID auto-increments for each new instance.
4. When the game encounters an item with ID >= 10000, treat it as its original item but apply its private `data` attributes.
5. Equip or use independent items should correctly apply their `data` attributes to actors, modifying stats or effects.
6. Support random attribute injection from note tags (e.g., <atk:5~10>) at instance creation.
7. Show independent items in item/weapon/armor windows using their original name and icon, optionally showing custom attributes.
8. Ensure saving and loading serializes the independent item object and ID counter.
9. Maintain standard RPG Maker functionality for stackable items, while independent items are always unique.

Include all necessary hooks in Game_Party, Game_Actor, DataManager, and Window_ItemList for seamless integration.














那你为什么不接codex呢,乱写




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1