- Pokémon Essentials Version
 - v21.1 ✅
 
- Also compatible with
 - v21.1
 - v21
 - v20.1
 - v20
 - v19.1
 - v19
 - v18.1
 - v18
 - v17.2
 - v16.2
 - Pre-v16.2
 
This script is for RPG Maker XP. It adds a lot of useful classes and methods for scripters:
RandomHelper
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Variable Switches Alias
Original code to remove an apricorn:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
With this script:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Or
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Tweener
		
	
All movements in this gif were made in sample scene. The first Marill's movement was made with this code:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
EsBridge
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Misc Util
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
					
					
	
		
			- RandomHelper who make doing things like raffle a lot easier. Recommended even for non-scripters.
 - Variable Switches Alias, who makes switch/variable access shorter and more readable
 - Tween system
 - Multiversion/non-essentials layer (partial)
 - Misc classes and methods
 
RandomHelper
			
				Ruby:
			
		
		
		helper = ItemRandomHelper.new
helper.add(60, :POTION)
helper.add(30, :ANTIDOTE)
helper.add(10, :ETHER)
pbItemBall(helper.get)
	Variable Switches Alias
Original code to remove an apricorn:
			
				Ruby:
			
		
		
		$bag.remove(pbGet(8))
data = GameData::Item.get(pbGet(8))
pbSet(3, data.name)
	
			
				Ruby:
			
		
		
		$bag.remove($gv[:APRICORN_DELIVERED])
data = GameData::Item.get($gv[:APRICORN_DELIVERED])
$gv[:TEMP_PKMN_NAME] = data.name
	
			
				Ruby:
			
		
		
		$bag.remove($gv[8])
data = GameData::Item.get($gv[8])
$gv[3] = data.name
	Tweener
	All movements in this gif were made in sample scene. The first Marill's movement was made with this code:
			
				Ruby:
			
		
		
		# Move Marill to (x:Graphics.width/2 and y:64) in 1.5s.
@tweener.add(MoveTween.new(@sprites["Marill"], Graphics.width/2, 64, 1.5))
	EsBridge
			
				Ruby:
			
		
		
		# Display message in all Essentials versions
EsBridge.message("Message here")
# Returns frame delta. Works with or without MKXP-Z
EsBridge.delta
# Returns item name in all Essentials, and even in base RPG Maker XP (but you should use a number as parameter)
EsBridge.item_name(:POTION)
	Misc Util
			
				Ruby:
			
		
		
		# Random value from range
(2..5).random
# Access Color rbga like an Array
some_color[1] = 200
# Lerp between two tones (for mixing). Below example means 80% red and 20% blue
Tone.lerp(Tone.new(255,0,0), Tone.new(0,0,255), 0.8)
# Format Time from seconds. This code will returns "01:01:40"
FLUtil.format_time_from_seconds(3700)
# Returns all player pokémon (including party, boxes and Day Care)
FLUtil.all_player_pokemon
# Change all deoxys forms in party to +1. Go to 0 after last
FLUtil.swap_species_form(:DEOXYS)
# Returns if the item is in the bag, pc or hold in any pokémon
FLUtil.has_item_at_bag_or_pc_or_hold?(:POTION)
	- Credits
 - FL (not required)
 
	