• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

Resource Always inside Bushes 1.1.0

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65

Titania318

Rookie
Member
Joined
Jun 3, 2018
Posts
8
Great Script. There is an error though, when you move between connected maps while still inside Bushes. This is because you need to verify not just this map but also the behind map.

[2022-05-30 21:23:19 -0400]
[Pokémon Essentials version 20]
[v20 Hotfixes 1.0.2]

Exception: TypeError
Message: no implicit conversion from nil to integer

Backtrace:
042:Game_Map:270:in `[]'
042:Game_Map:270:in `block in bush?'
042:Game_Map:268:in `each'
042:Game_Map:268:in `bush?'
[Always inside Bushes] AiBiW.rb:18:in `calculate_bush_depth'
045:Game_Character:936:in `update_move'
049:Game_Follower:152:in `update_move'
045:Game_Character:872:in `update'
046:Game_Event:264:in `update'
050:Game_FollowerFactory:264:in `block in update'


To correct it you need to do the following:
Ruby:
        behind_map = (self.map.valid?(xbehind, ybehind)) ? [self.map, xbehind, ybehind] : $map_factory&.getNewMap(xbehind, ybehind)
        if this_map[0].deepBush?(this_map[1], this_map[2]) && behind_map[0].deepBush?(behind_map[1], behind_map[2])
          @bush_depth = Game_Map::TILE_HEIGHT
        elsif !moving? && this_map[0].bush?(this_map[1], this_map[2])
          @bush_depth = 12
        elsif moving? && this_map[0].bush?(this_map[1], this_map[2]) && behind_map[0].bush?(behind_map[1], behind_map[2])
          @bush_depth = 12
 

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65
Kotaro updated Always inside Bushes with a new update entry:

AiB bugfix + improvements (addition of AiW and AiS)

Added compability with Golisopos Following Pokemon EX.
Added Always inside Water by derFischae.
Added Always inside Sand.

All of the above are toggleable and customizable.

Means you can only have one of them and disable the others and you also have a empty array in the config for each of them where you can include events that have to or don't have to be affected by the "sinking" condition.
And you can adjust the amount of pixel the event or player sinks in in the config.

Download link has...

Read the rest of this update entry...
 

KobusKobus

Rookie
Member
Joined
Jun 18, 2022
Posts
3
Could you update this to be compatible with the most recent version of pokemon essentials (v20.1)? Currently it crashes because of the requirements for the v20 hotfixes plugin, which is now integrated into v20.1
 

Granti

Rookie
Member
Joined
Feb 20, 2023
Posts
1
Hello i use 20.1 and drop the Folder into Plugins but it doesn't load it D;
 

Zygoat

Mimikyu enjoyer
Member
Joined
Dec 21, 2020
Posts
161
Hello i use 20.1 and drop the Folder into Plugins but it doesn't load it D;
With any plugin you install, you have to hold shift when starting up the game in debug mode to get it to check for new plugins and register them
 
Back
Top