Current cheats for PE based games have some issues
PE 18 is missing $ItemData
# cheat_rpgmxp.rb lines 33-43
def getDisplayName(item)
itemname=PBItems.getName(item)
return itemname unless $ItemData # skip if PE18
if $ItemData[item][ITEMPOCKET]==3
machine=$ItemData[item][ITEMMACHINE]
itemname=_INTL("{1} {2}",itemname,PBMoves.getName(machine))
elsif $ItemData[item][ITEMPOCKET]==4 #mod
firstberry=PBItems::CHERIBERRY
itemname=_ISPRINTF("No{1:02d} {2:s}",item-firstberry+1,itemname)
end
return itemname
end
PE 20~21 uses $player
instead or $Trainer
$Trainer
is now known as $player
, and $PokemonBag
is now $bag
. Any mentions of these in script commands in your events will be automatically changed by the Compiler (which will also make a few other changes like that). The methods in $bag
have been renamed to be shorter and simpler.
from https://luka-sj.com/res/PE20
# cheat_pe19.rb lines 52-54
($player || $Trainer).party.each{|pokemon|
@partyArray.push(pokemon.name)
}
# cheat_pe19.rb lines 104-106
($player || $Trainer).party.each{|pokemon|
pokemon.heal
}
Pokémon Reminiscencia and Pokémon Plasma have additional argument in PokemonMartAdapter#getPrice


# cheat_pe19.rb lines 15-17
def getPrice(item, selling = false, unlimited_or_discount = nil)
return 0
end
PE GSC has additional argument in Game_Player#passable?

# pokefix.rb lines 108-114
def passable?(x, y, d, strict = false)
if $wtw
return true
else
cheatPassable?(x, y, d, strict)
end
end
Also, maybe switch back to HOME
button for cheats instead of F8
?
F8
is usually used for screenshots, so every time a cheats are triggered, a screenshot is taken
