- 69
- Posts
- 9
- Years
- United States
- Seen May 30, 2015
So, in my game, there is an event that prevents the player from leaving Pallet Town without a Pokémon. This is the event:
The player moves down accordingly, but then the event plays again and the player moves down again, dialogue and all. What's causing this.
Also, I have an item registered as a Key Item, but it can be tossed. But how? Is it not registered correctly? Here's its entry in items.txt
And here's its two PokemonItemEffects entries:
Have any help?
Code:
Script: pbExclaim($game_player)
Text:It's dangerous to go alone! You need to take a
Pokémon!
Set Move Route: Player (Ignore if Can't Move)
-Move Down
-Move Down
Also, I have an item registered as a Key Item, but it can be tossed. But how? Is it not registered correctly? Here's its entry in items.txt
Code:
526,GBSOUNDS,GB Sounds,8,0,A music player that allows you to listen to nostalgic songs. It's operated with the flip of a single switch.,2,0,6,
Code:
ItemHandlers::UseFromBag.add(:GBSOUNDS,proc{|item|
$game_switches[59]=true if $game_switches[59]== false
$game_switches[59]=false if $game_switches[59]== true
pbBGMStop()
$game_system.setDefaultBGM(nil)
next 1 # Continue
})
ItemHandlers::UseInField.add(:GBSOUNDS,proc{|item|
$game_switches[59]=true if $game_switches[59]== false
$game_switches[59]=false if $game_switches[59]== true
pbBGMStop()
$game_system.setDefaultBGM(nil)
next 1 # Continue
})