• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Resource icon

v21.1 rainefallUtils 1.2

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Also compatible with
  1. v20
  2. v20.1
  3. v21
Just a couple of my scripting utility functions

Bitmap.blur_rf(power, [opacity]) and Bitmap.blur_fast(power, [opacity]) are functions for, well, blurring a bitmap. Bitmap.blur_rf is not recommended for realtime use.

Sprite.create_outlined_sprite([width]) returns a sprite intended to sit below the sprite it is called on in order to display an outline. There is definitely a more efficient way of doing this but it is needed for one of my scripts sooo...

Math.lerp(a, b, t) is a simple linear interpolation function.

Game_Temp.map_locked allows you to stop the map from scrolling with the player, which is useful for allowing the player to move around in cutscenes without the camera following them. (As far as I know there is no way to do this in regular Essentials but if I'm wrong please don't tell me.)

Rf.wait_for_move_route is a script version of the event command of the same name. It can be used if you are writing your game events in scripts like I do sometimes. It will only work in Scene_Map.

Rf.create_event creates an event on the current map. It returns a hash containing the Game_Event on the map under :event, and the event's Sprite_Character under :sprite. It also takes a block, which allows you to modify the event before it is placed on the map, like so:
Rf.create_event example:
Expand Collapse Copy
# creates an event
scientist_event = Rf.create_event { |event|
  # sets its properties
  event.x = 9
  event.y = 18
  event.pages[0].graphic.character_name = "scientist_m"
}

# make the event move somewhere
pbMoveRoute(scientist_event[:event], [
  PBMoveRoute::Up,
  PBMoveRoute::Up
])
Rf.wait_for_move_route

# delete the event
Rf.delete_event(scientist_event)
There's also Rf.delete_event, which you may have noticed in that code block. Mostly self explanatory, however please note it only works on events created with Rf.create_event.
Credits
Credit "rainefall" if used
Author
rainefall
Downloads
1,591
Views
5,901
First release
Last update

Ratings

4.50 star(s) 2 ratings

More resources from rainefall

Latest updates

  1. v21 Compatibility Fix

    It appears Essentials now includes its own Kernel#lerp. Why even bother.
  2. Event Instantiation, pt 2

    I've made a couple of changes/fixes regarding event instantiation across multiple maps. Notably...
  3. Event Instantiation

    Couple of additions, notably Rf.create_event, which allows you to instantiate events at runtime...

Latest reviews

me arroja error en la linea 50 nombre error ocurrido, ayuda porfavor
rainefall
rainefall
could you tell me more about the error? when did it occur? what was the full error message?
Back
Top