Hi! I'd just like to say that, although I am not OP, I have used this script and managed to do a "Teleport" item.
For anyone who wants to use it just go to "Config.rb" file and add a new entry for a TELEPOR_CONFIG
Then go to "ItemHandler.rb" and add a new entry for an "Item_Teleport" and then add the code for the item after
Code:
Item_RockSmash = AdvancedHMItems::ROCKSMASH_CONFIG
Item_Cut = AdvancedHMItems::CUT_CONFIG
Item_Strength = AdvancedHMItems::STRENGTH_CONFIG
Item_Surf = AdvancedHMItems::SURF_CONFIG
Item_Fly = AdvancedHMItems::FLY_CONFIG
Item_Headbutt = AdvancedHMItems::HEADBUTT_CONFIG
Item_Flash = AdvancedHMItems::FLASH_CONFIG
#This is where you add the Teleport Item
Item_Teleport = AdvancedHMItems::TELEPORT_CONFIG
Code:
#===========================================
# Teleport
#===========================================
if Item_Teleport[:active]
HiddenMoveHandlers::CanUseMove.delete(:TELEPORT)
HiddenMoveHandlers::UseMove.delete(:TELEPORT)
def canUseMoveTeleport?
if !GameData::MapMetadata.exists?($game_map.map_id) ||
!GameData::MapMetadata.get($game_map.map_id).outdoor_map
pbMessage(_INTL("Can't use that here."))
return false
end
healing = $PokemonGlobal.healingSpot
healing = GameData::Metadata.get.home if !healing # Home
if !healing
pbMessage(_INTL("Can't use that here."))
return false
end
if $game_player.pbHasDependentEvents?
pbMessage(_INTL("{1} can't be used when you have someone with you.", GameData::Item.get(Item_Teleport[:internal_name]).name))
return false
end
return true
end
def confirmUseMoveTeleport
healing = $PokemonGlobal.healingSpot
healing = GameData::Metadata.get.home if !healing # Home
return false if !healing
mapname = pbGetMapNameFromId(healing[0])
return pbConfirmMessage(_INTL("Want to warp to the last used healing spot in {1}?",mapname))
end
def useMoveTeleport
healing = $PokemonGlobal.healingSpot
healing = GameData::Metadata.get.home if !healing # Home
return false if !healing
if !pbHiddenMoveAnimation(nil)
pbMessage(_INTL("{1} used {2}!, $Trainer.name, GameData::Item.get(Item_Teleport[:internal_name]).name))
end
pbFadeOutIn {
$game_temp.player_new_map_id = healing[0]
$game_temp.player_new_x = healing[1]
$game_temp.player_new_y = healing[2]
$game_temp.player_new_direction = 2
pbCancelVehicles
$scene.transfer_player
$game_map.autoplay
$game_map.refresh
}
pbEraseEscapePoint
return true
end
ItemHandlers::UseFromBag.add(Item_Teleport[:internal_name], proc do |item|
next canUseMoveTeleport? ? 2 : 0
end)
ItemHandlers::UseInField.add(Item_Teleport[:internal_name], proc do |item|
useMoveTeleport if confirmUseMoveTeleport
end)
end
If you haven't altered the plugin yourself I will leave a link to a version of the Plugin with the Teleport code:
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
Yes. It's the strangest thing. I can use all the other hm items but fly. I know for a fact it's not the gym badge requirement either, as the only requirement in my game is that you have the item.
Yes. It's the strangest thing. I can use all the other hm items but fly. I know for a fact it's not the gym badge requirement either, as the only requirement in my game is that you have the item.
Any plans to have this on v17.2? The version available is unfinished and has several HMs not available, flash is the only one I could think of off the top of my head (there are several others however)
Any plans to have this on v17.2? The version available is unfinished and has several HMs not available, flash is the only one I could think of off the top of my head (there are several others however)
This section is for the discussion of the tutorials and resources on Eevee Expo. To find tutorials and resources, check out the Tutorial and Resource Manager for optimal navigation.