- 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.nameTweener
 
	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)
 
	![[v13+] FLUtil (works with PSDK too)](/data/resource_icons/1/1690.jpg?1747613793)

![[v13+] Video Poker](/data/resource_icons/1/1773.jpg?1755821371)
![[v12+] Set the Controls Screen (now supporting gamepad)](/data/resource_icons/1/1038.jpg?1663418012)
![[v13+] Unreal Time System](/data/resource_icons/1/1022.jpg?1661708677)
![[v13+] Ball Catch Game](/data/resource_icons/1/1090.jpg?1668113312)
![[v13+] Tilt Labyrinth Game](/data/resource_icons/1/1639.jpg?1740355989)
![[v12+] Diploma (and how to do a simple scene)](/data/resource_icons/1/1183.jpg?1676506821)
![[v13+] Character Selection](/data/resource_icons/1/1049.jpg?1664327327)