Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Guía para crear tus propios plugins modulares
Plugins/ └── Mi Plugin/ ├── meta.txt # Metadatos del plugin ├── 001_Config.rb # Configuración ├── 002_Main.rb # Código principal └── 003_Events.rb # Event handlers
Name = Mi Plugin Version = 1.0.0 Credits = Tu Nombre Link = https://tu-sitio.com
# 001_Config.rb module MiPlugin VERSION = "1.0.0" ENABLED = true end # 002_Main.rb if MiPlugin::ENABLED class PokemonSystem attr_accessor :mi_feature alias mi_plugin_initialize initialize def initialize mi_plugin_initialize @mi_feature = false end end end
EventHandlers.add(:on_wild_pokemon_created, :mi_plugin, proc { |pokemon| # Tu lógica aquí } )