• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
[v13+] FLUtil (works with PSDK too)

v21.1 [v13+] FLUtil (works with PSDK too) 1.1

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Also compatible with
  1. v21.1
  2. v21
  3. v20.1
  4. v20
  5. v19.1
  6. v19
  7. v18.1
  8. v18
  9. v17.2
  10. v16.2
  11. Pre-v16.2
This script is for RPG Maker XP. It adds a lot of useful classes and methods for scripters:
  • 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
Works with or without Essentials. Partially works as PSDK plugin. Tested in Essentials v13 and v21.1. If this script isn't working on latest Essentials version, please inform on this thread. Below, examples based in Essentials, but most works in a vanilla RPG Maker XP project:

RandomHelper
Ruby:
Expand Collapse Copy
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:
Expand Collapse Copy
$bag.remove(pbGet(8))
data = GameData::Item.get(pbGet(8))
pbSet(3, data.name)
With this script:
Ruby:
Expand Collapse Copy
$bag.remove($gv[:APRICORN_DELIVERED])
data = GameData::Item.get($gv[:APRICORN_DELIVERED])
$gv[:TEMP_PKMN_NAME] = data.name
Or
Ruby:
Expand Collapse Copy
$bag.remove($gv[8])
data = GameData::Item.get($gv[8])
$gv[3] = data.name

Tweener
gif.gif


All movements in this gif were made in sample scene. The first Marill's movement was made with this code:

Ruby:
Expand Collapse Copy
# 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:
Expand Collapse Copy
# 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:
Expand Collapse Copy
# 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)
Author
-FL-
Downloads
232
Views
1,885
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from -FL-

Latest updates

  1. 1.1

    RandomHelper supports fixed (main) seeds, using Random class seeds Add method for easily do wait...
Back
Top