じ☆ve冰风 发表于 2026-7-23 10:47:49

AutMouse Labs Steal System Plugin for MZ

Hello all, A while back I released a Steal Plugin for MZ that was usable but not very user friendly under the name AMMZ_Steal.js. There is a thread about it

here

if you want to look at it. As part of that process I got some great feedback from Trihan and ATT_Turan that was encouraging but honestly above my head at the time. Since then I have gotten better with js and much better at deciphering the MZ code base. I have also decided on a name to use for my plugins and tutorials going forward, AutMouse Labs. I am excited to present this far easier to use successor to that plugin here.

The new version is fully integrated into MZ's plugin command system and only requires a few parameters be set up in the plugin itself and one state to be reserved for marking enemies as already stolen from.

----Instructions----
Use the plugin command 'Steal" in a common event that is ran by a skill or item.
Create an inventory list in an enemies notetags using the following format: <stealList:X Y> X and Y are item id numbers and must be separated by spaces. There needs to be no spaces before or after the items. There is no limited to the number of items you can add to the inventory in this way (e.g. <stealList:X Y Z>
Reserve a state for when an enemy has already been stolen from and set that state id in the plugin parameter.
Set a steal success chance in the plugin parameter.

I will be updating this post with a video outlining how to use the plugin later this week.

Thanks!

----Version----
1.0.1 - 05/09/2023
- Fixed a bug that causes game to crash if stealing from an enemy with no stealList
- Fixed a bug that would conflict with other plugins using the variable pluginName

1.0 - 05/08/2023
- Plugin Released

----License----
This plugin is distributed under the MIT license.
Feel free to use it modify it in any project.
Credit is appreciated as AUTMOUSE


The MIT License

Copyright <YEAR> <COPYRIGHT HOLDER> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software…

                                        opensource.org                               






本贴来自国际rpgmaker官方论坛作者:cetra777处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/autmouse-labs-steal-system-plugin-for-mz.157361/
页: [1]
查看完整版本: AutMouse Labs Steal System Plugin for MZ