📒
Deluxe Battle Kit Tutorial
  • Deluxe Battle Kit for v21.1
    • Deluxe Animations
      • Animation: Databoxes
      • Animation: Item Usage
      • Animation: Fleeing Pokemon
      • Animation: Mega Evolution
      • Animation: Primal Reversion
      • Animation: Shadow Pokemon
    • Deluxe Battle Rules
      • Rules: Battle Modes
      • Rules: Battle Visuals
      • Rules: Battle Audio
      • Rules: Editing the Player
      • Rules: Mega Evolution
      • Rules: Capturing Pokemon
      • Rules: Editing Wild Pokemon
    • Wild Boss Attributes
      • Attribute: Boosted HP
      • Attribute: Immunities
    • Mid-Battle Scripting
      • Trigger Keys
        • Triggers: Round Phases
        • Triggers: Battler Turns
        • Triggers: Item Usage
        • Triggers: Wild Capture
        • Triggers: Switching
        • Triggers: Megas & Primals
        • Triggers: Move Usage
        • Triggers: Damage Results
        • Triggers: Battler Condition
        • Triggers: End of Effects
        • Triggers: End of Battle
        • Triggers: Variable
        • Triggers: Choices
        • Triggers: Extensions
          • Extensions: User
          • Extensions: Frequency
      • Command Keys
        • Commands: Text & Speech
        • Commands: Audio & Animation
        • Commands: Utilities
        • Commands: Battle Mechanics
        • Commands: Battler Attributes
        • Commands: Battlefield Conditions
        • Commands: Extensions
      • Advanced Scripting
        • Advanced: Speech Utilities
          • Speech: General
          • Speech: Choices
          • Speech: Speakers
        • Advanced: Variable Utilities
        • Advanced: Storing Scripts
        • Advanced: Hardcoding
        • Advanced: Global Scripts
    • Example Battles
      • Examples: Wild Battles
      • Examples: Trainer Battles
    • Miscellaneous Utilities
    • Add-On Tutorials
      • Enhanced Battle UI
        • UI: Battler Info
        • UI: Poke Ball Shortcut
        • UI: Move Info
      • SOS Battles
        • SOS: Plugin Overview
        • SOS: PBS Data
        • SOS: Battle Rules
        • SOS: Mid-Battle Scripting
      • Raid Battles
      • Z-Power
        • Z-Power: Z-Moves
        • Z-Power: Ultra Burst
        • Z-Power: Animations
        • Z-Power: Battle Rules
        • Z-Power: Mid-Battle Scripting
      • Dynamax
        • Dynamax: Properties
        • Dynamax: Move Data
        • Dynamax: Form Data
        • Dynamax: Animations
        • Dynamax: Battle Rules
        • Dynamax: Mid-Battle Scripting
      • Terastallization
        • Terastal: Tera Types
        • Terastal: Tera Forms
        • Terastal: Animations
        • Terastal: Battle Rules
        • Terastal: Mid-Battle Scripting
      • Improved Item AI
        • Item AI: Handlers
      • Wonder Launcher
        • Launcher: Plugin Overview
        • Launcher: PBS Data
        • Launcher: Battle Rules
        • Launcher: Mid-Battle Scripting
      • Animated Pokemon System
        • Animated: Pokemon Sprites
        • Animated: Dynamic Sprite Effects
        • Animated: UI Sprites
        • Animated: Sprite Editor
        • Animated: Mid-Battle Scripting
      • Animated Trainer Intros
        • Intros: Trainer Sprites
        • Intros: Sprite Editor
        • Intros: UI Sprites
        • Intros: Battle Transitions
        • Intos: Mid-Battle Scripting
Powered by GitBook
On this page

Was this helpful?

  1. Deluxe Battle Kit for v21.1
  2. Deluxe Battle Rules

Rules: Editing the Player

Section 2.D

These are rules that can be used to temporarily edit attributes of the player, their party or their inventory for the duration of this battle.

"tempPlayer"

You can use this rule to change the player's name and/or appearance for this battle, and revert back to normal afterwards. For example, you can use this to disguise the player as a different character for a capture tutorial. This is entered as setBattleRule("tempPlayer", Attributes), where "Attributes" can be either a String, Integer, or an Array which contains both a string and an integer. The string entered here will be used as the player's new temporary name for this battle. If an integer is entered, this will change the player's outfit to whichever outfit number is set here.

"tempParty"

You can use this rule to give the player a temporary party that will replace their normal party for this battle, and revert back to their normal party afterwards. This is entered as setBattleRule("tempParty", Array), where "Array" is an array that contains a number of Pokemon objects, or species ID's and levels. For example, [:PIKACHU, 20, :MEOWTH, 15] will give the player a temporary party consisting of a level 20 Pikachu and a level 15 Meowth. If you want to edit specific values on the temporary Pokemon the player should have, then you can first create a Pokemon object yourself with something like:

pkmn = Pokemon.new(:PIKACHU, 20)

Then you may edit its values from there. Once the Pokemon is edited to your liking, you may just enter pkmn in the array for this battle rule instead of a species ID and level.

"tempBag"

You can use this rule to give the player a temporary inventory that will replace their normal bag for this battle, and return all of their normal items afterwards. This is entered as setBattleRule("tempBag", Array), where "Array" is an array that contains a number of item ID's and quantities for each item. For example, [:POTION, 5, :ANTIDOTE, 2] will give the player a temporary bag consisting of only 5 Potions and 2 Antidotes. If no quantity is entered after an item ID, the quantity will always assumed to be 1. So for example, if you set this to something like [:POKEBALL, 5, :QUICKBALL, :DUSKBALL], then the player's temporary bag will consist of 5 Poke Balls, 1 Quick Ball and 1 Dusk Ball.

PreviousRules: Battle AudioNextRules: Mega Evolution

Last updated 9 months ago

Was this helpful?