• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

Resource Moved Event Expanded 1.1

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
678
wrigty12 submitted a new resource:

Moved Event Expanded - Save your event's position... forever....

$PokemonMap.addMovedEvent saves an event's position to be used when you save on a map, and load that save. However, once you transfer or travel away from that map, the position is reset to the event's normal position.

This plugin expands this function to now save the event's position forever... or until you reset it using $PokemonMap.clearMovedEvent.

Features
  • If you use the function $PokemonMap.addMovedEvent(eventID), that event's position will...

Read more about this resource...
 
wrigty12 updated Moved Event Expanded with a new update entry:

Update 1.1 - Small Rework

Change Log
🛠️Some coded events (like Trainer Battles) call $PokemonMap.addMovedEvent automatically. In order for this plugin to not break these because they wouldn't return to their original place, I had to add a parameter to activate the persistent saved spot. Now, you have to set the argument "permanent: true" in order to save the event's position permanently.
  • For instance, you now have to call $PokemonMap.addMovedEvent(eventide, permanent: true)

Read the rest of this update entry...
 
I tried this but the event I wanted to stay put moved back into position when I left the room.

Code is:
Ruby:
Expand Collapse Copy
Conditional Branch: Script: TrainerBattle.start(SCIENTIST_F, "Peggy")
    Script: pbNoticePlayer(get_self)
    Control Switches: [0059: DefeatedPeggy] = ON                    #Self Switches didn't work either
    Text: Darron's ready to see you!
    Set Move Route [Trainer]
                           $>Turn Right
                           $>Move Right
                           $>Turn Down
    Script: $PokemonMap.addMovedEvent(get_self, permanent: true)          #Using the Event ID was no help either

Branch End
 
I tried this but the event I wanted to stay put moved back into position when I left the room.

Code is:
Ruby:
Expand Collapse Copy
Conditional Branch: Script: TrainerBattle.start(SCIENTIST_F, "Peggy")
    Script: pbNoticePlayer(get_self)
    Control Switches: [0059: DefeatedPeggy] = ON                    #Self Switches didn't work either
    Text: Darron's ready to see you!
    Set Move Route [Trainer]
                           $>Turn Right
                           $>Move Right
                           $>Turn Down
    Script: $PokemonMap.addMovedEvent(get_self, permanent: true)          #Using the Event ID was no help either

Branch End
I'm assuming that move route is applying to the event you want to save..?

You need to add a Wait for Move's Completion after the Move Route, otherwise the script will run during the move route, not after it.
 
Back
Top