Pixelmon Skript Extension icon

Pixelmon Skript Extension -----

Adds skript support for Pixelmon functionality



NOTE \
The below explanation expects a basic level of knowledge of Skript, if you don't know what Skript is, you can find out more here

Conditions

Matches Spec

This condition checks if a given Pokemon matches any given specs.
Example:
Code (Text):
if {_pokemon} matches shiny:
   message "wow"
The above checks if the Pokemon in the variable [code single]_pokemon[/code] is a shiny, and if it is then it'll send the message "wow".

This can also be used to in the opposite way like so:
Code (Text):
if {_pokemon} does not match "shiny":
   message "not shiny"

Expressions

Duplicate/Copy Pokemon

This allows you to make an exact copy of the Pokemon, with a new UUID.
Code (Text):
set {_copy_pokemon} to {_pokemon}'s copy

Species Name

This allows you to get the name of the species of a pokemon
Code (Text):
set {_name} to {_pokemon}'s species

Pokemon's Level

This allows you to get the level of the Pokemon
Code (Text):
set {_level} to {_pokemon}'s level

Pokemon's Palette

This allows you to get the palette of the Pokemon
Code (Text):
set {_level} to {_pokemon}'s palette

Pokemon Form

This allows you to get the name of the form of a pokemon
Code (Text):
set {_form} to {_pokemon}'s form

Pokemon Ability

This allows you to get the ability of the pokemon
Code (Text):
set {_ability} to {_pokemon}'s ability

Ability Name

This allows you to get the name of an ability
Code (Text):
set {_ability} to {_pokemon}'s ability
set {_ability_name} to {_ability}'s abilityname

Pokemon Dex

This allows you to get the dex number of a pokemon
Code (Text):
set {_dex} to {_pokemon}'s dex

Pokemon Formatted Dex

This allows you to get the dex number of a pokemon in the "pretty" format (i.e. 001)
Code (Text):
set {_dex} to {_pokemon}'s formatteddex

Player's Party Pokemon

This allows you to get a player's pokemon from their party
Code (Text):
set {_pokemon} to pokemon 1 of {_player}

Player's PC Pokemon

This allows you to get a player's pokemon from their PC
Code (Text):
set {_pokemon} to pokemon 1 of box 1 for {_player}

Player's PC Box

This allows you to get all the pokemon in a player's box in their PC
Code (Text):
set {_pokemon::*} to box 1 for {_player}

Player's Party

This allows you to get all the pokemon in a player's party
Code (Text):
set {_pokemon::*} to party of {_player}

Effect

Spawn Pokemon

This allows you to spawn a pokemon at a location
Code (Text):
set {_location} to position of {_player}
pokespawn {_location} "random shiny"

Give Pokemon

This allows you to give a player a pokemon
Code (Text):
givepoke {_player} "random shiny"

Dialogue Box

This allows you to open a dialogue box for a player
Code (Text):
add "Test one" to {_choices::*}
add "Test two" to {_choices::*}
dialogue for {_player} title "Hello World" description "Description!" with {_choices::*}
NOTE \
If you use this in the dialogue choice event then
it will pass through to the next dialogue box seemlessly

Input Dialogue Box

This allows you to open an input dialogue box for a player
Code (Text):
not closeable input for {_player} title "Hello World" description "Enter text please" with default text "Wow!"
or
Code (Text):
closeable input for {_player} title "Hello World" description "Enter text please" with default text "Wow!"

Events

Choice Event

This event is triggered when a player selects a choice from a dialogue box
Code (Text):
on choice:
  set {_player} to player
  set {_choice} to event-choice
  message "%{_player}% %{_choice}%"

Dialogue Input Event

This event is triggered when the player inputs text into a dialogue input box
Code (Text):
on dialogue input:
  message "Hello World"
  set {_player} to player
  set {_input} to event-string
  message "%{_player}% %{_input}%"

Dialogue Input Close Event

This event is triggered when the player closes a dialogue input box
Code (Text):
on dialogue input close:
  message "wow!"

Successful Capture Event

This event is triggered when a player successfully captures a Pokemon
Code (Text):
on successful capture:
   set {_player} to player
   set {_pokemon} to event-pokemon
   set {_entity} to event-pixelmon
   message "WOW! %{_pokemon}% %{_player}% %{_entity}%"

NPC Interact Event

This event is triggered when a player interacts with a Pixelmon NPC
Code (Text):
on npc interact:
   set {_entity} to event-npc
   set {_player} to player
   message "WOW! %{_entity}%"

Example

Code (Text):
on join:
   set {_player} to player

   message "%{_player}%"

   set {_pokemon} to pokemon 1 of {_player}
   set {_dex} to {_pokemon}'s dex
   set {_formatted_dex} to {_pokemon}'s formatteddex
   message "%{_pokemon}% %{_dex}% %{_formatted_dex}%"
   wait 2 seconds
   add "Test one" to {_choices::*}
   add "Test two" to {_choices::*}
   not closeable input for {_player} title "Hello World" description "Enter text please" with default text "Wow!"

   set {_location} to position of {_player}

   pokespawn {_location} "random shiny"

   if {_pokemon} matches "shiny":
      set {_name} to {_pokemon}'s species
      message "%{_name}%"
      wait 10 seconds
      givepoke {_player} "random shiny"

on choice:
   set {_player} to player
   set {_choice} to choice
   message "%{_player}% %{_choice}%"

on dialogue input:
   message "Hello World"
   set {_player} to player
   set {_input} to event-string
   message "%{_player}% %{_input}%"

on dialogue input close:
   message "wow!"

on successful capture:
   set {_player} to player
   set {_pokemon} to event-pixelmon
   set {_test} to event-pokemon
   message "WOW! %{_pokemon}% %{_player}% %{_test}%"
Resource Information
Author:
----------
Total Downloads: 483
First Release: Feb 16, 2024
Last Update: Feb 23, 2024
Category: ---------------
All-Time Rating:
0 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings