> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/SkyFangames/La-Base-de-Sky/llms.txt
> Use this file to discover all available pages before exploring further.

# Sistema de Eventos

> Crear NPCs y eventos en mapas

## Crear un NPC

<Steps>
  <Step title="Abrir editor de mapas">
    RPG Maker XP editor
  </Step>

  <Step title="Crear evento">
    Doble clic en el mapa
  </Step>

  <Step title="Configurar gráfico">
    Seleccionar sprite del NPC
  </Step>

  <Step title="Añadir comandos">
    Script calls para interacciones
  </Step>
</Steps>

## Comandos comunes

### Dar Pokémon

```ruby theme={null}
pbAddPokemon(:PIKACHU, 5)
```

### Batalla entrenador

```ruby theme={null}
pbTrainerBattle(:YOUNGSTER, "Timmy", "Has ganado", false, 0)
```

### Dar objeto

```ruby theme={null}
pbReceiveItem(:POTION, 5)
```

## Ejemplos incluidos

La base incluye NPCs demostrativos en:

* Pueblo Inicio
* Mapa de Plugins
* Condominio Lugano
* Ruta 4 (movimiento random)
