Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old 4 Days Ago (5:15 AM). Edited 3 Days Ago by Marin.
Marin's Avatar
Marin Marin is offline
Not Bored
  • Moderator
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 567
Pokéride functionality in Pokémon Essentials. Only compatible with v17+.


Credits
  • Marin
  • Mid117 (Pokéride sprites)
  • Roan (Pokéride sprites)
  • Mashirosakura (Pokéride sprites)


Installation
First, download these graphics and put them in Graphics/Characters.
Download Graphics
(I recommend changing the graphics. The graphics are not the emphasis of this resource.)

Next, put the following pieces of code in two new sections above Main.
Pokéride_Main
Pokéride_Rides


Documentation
To call a Pokéride, use pbMount(name).
To dismount a Pokéride, use pbDismount(name).
In both of these, name is either a string (with quotation marks, e.g. "Tauros"), a symbol (e.g. :Tauros), or just plain Tauros.

There are two new terrain tags, 17 and 18.
17 is land that can only be walked on if you're on a Mudsdale
18 is a mountain tile that is counted as a Rock Climb tile.
To give a tile one of these terrain tags, you'll have to go to Debug -> Information Editors -> Edit Terrain Tags.

Each Pokéride must have all of the following:
  • MoveSheet: The path in Graphics/Characters the graphic will be at.
  • MoveSpeed: How fast you move in this mode of this Pokéride.
  • ActionSheet: Whenever you hold Z, it'll switch to this sheet.
  • ActionSpeed: Whenever you hold Z, this is the new speed it'll have.

You then have the option to add one or more of the following:
  • RockSmash: Any rock you walk up to while holding Z will be broken.
  • CanSurf: You can properly surf with this Pokéride.
  • Strength: Any boulder you walk up to while holding Z will be pushed forward.
  • WalkOnMudsdale: If you're on this Pokéride, you can walk on terrain with terrain tag 17 (which you normally can't).
  • ShowHidden: If a listed item with .hidden in the event name is within a 4x4 radius, it'll cause the Pokéride to use HiddenNearbySheet for a graphic and HiddenNearbySpeed for speed. These two must be implemented if you have ShowHidden enabled.
  • RockClimb: If you're on this Pokéride, you can use Rock Climb over terrain with terrain tag 18.

If you want to swap Surf for a Pokéride, you should set SURF_MOUNT to the name of that Pokéride.

ROCK_CLIMB_MOUNT is the mount that is called whenever you successfully use Rock Climb while not being on a Pokéride.



And yep. That's essentially all this offers. I know it's barebones, but should provide a good base for anyone with decent programming knowledge (or eventing knowledge, even)
__________________
Reply With Quote

Relevant Advertising!

  #2    
Old 3 Days Ago (2:03 AM).
Marin's Avatar
Marin Marin is offline
Not Bored
  • Moderator
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 567
Updates to v1.1:
  • Fixed a bug with Rock Climb near map edges
  • Now supports v16.0, v16.1, and v16.2
__________________
Reply With Quote
  #3    
Old 2 Days Ago (10:43 PM).
Soccersam's Avatar
Soccersam Soccersam is offline
#Hilbert is Badass
     
    Join Date: Oct 2016
    Gender: Male
    Nature: Hasty
    Posts: 39
    Quote:
    Originally Posted by Marin View Post
    Updates to v1.1:
    • Fixed a bug with Rock Climb near map edges
    • Now supports v16.0, v16.1, and v16.2
    Uh... in your thread you say that the script is for v17+, but in this post you say it has been updated...
    My question is, is the script for v16 the same one (the above script download link) or is there another link for that script?
    __________________
    Whatever you do in life, it's not legendary unless your friends are there to see it.
    Reply With Quote
      #4    
    Old 2 Days Ago (12:23 AM).
    Marin's Avatar
    Marin Marin is offline
    Not Bored
    • Moderator
     
    Join Date: Nov 2016
    Location: The Netherlands
    Gender: Male
    Nature: Bashful
    Posts: 567
    Quote:
    Originally Posted by Soccersam View Post
    Uh... in your thread you say that the script is for v17+, but in this post you say it has been updated...
    My question is, is the script for v16 the same one (the above script download link) or is there another link for that script?
    Yep, it's exactly the same script.
    __________________
    Reply With Quote
      #5    
    Old 2 Days Ago (1:22 AM).
    Soccersam's Avatar
    Soccersam Soccersam is offline
    #Hilbert is Badass
       
      Join Date: Oct 2016
      Gender: Male
      Nature: Hasty
      Posts: 39
      Thanks a lot!
      __________________
      Whatever you do in life, it's not legendary unless your friends are there to see it.
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account

      Sponsored Links
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 5:52 PM.