• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[v18] Boon's SwSh-Style Mark Ribbons

Boonzeet

Pokémon Secrets of the Ages Developer
188
Posts
15
Years
  • Boon's Mark Ribbons

    0mPbwGl.png
    UNfErbP.png

    A script to emulate the marks feature of Pokémon Sword and Shield, and provide a custom tagline when you send your Pokémon out.

    How to Use

    Not much required to use once set up. There's a 1/1000 to 1/25 chance of various marks being attached to a caught Pokémon. A user can go into the ribbons page and press C on any ribbon, including a mark, to attach it. If a mark is attached to a Pokémon, the name of the Pokémon will be extended via a tagline in single battles.

    Install
    Essentials Version 18.1

    Just download this zip file, extract and copy the ribbons.png file to Graphics/Pictures and place the code from markribbons.txt above main.

    The script is now plug and play, so you're good to go!

    Essentials Version 17.2 (No longer supported)
    This plugin only supports v18 going forward. Please do not ask for help or fixes for this older version, or it will be eventually removed.
    Spoiler:


    Please credit Boonzeet if used.
     
    Last edited:
    22
    Posts
    10
    Years
    • Seen Nov 24, 2023
    I started the new game and it continues with the same error message when starting a wild battle, it also occurs in trainer battles.
     
    Last edited:

    Boonzeet

    Pokémon Secrets of the Ages Developer
    188
    Posts
    15
    Years
  • Boonzeet

    Pokémon Secrets of the Ages Developer
    188
    Posts
    15
    Years
  • even with that addition the ribbon still isn't attached to the pokemon
    I started the new game and it continues with the same error message when starting a wild battle, it also occurs in trainer battles.

    The Ribbon is being attached, just the icon is missing. In PScreen_Summary, find these lines:

    Code:
     ribn = @pokemon.ribbons[i]-1
            imagepos.push(["Graphics/Pictures/ribbons",230+68*(coord%4),78+68*(coord/4).floor,
                                                       64*(ribn%8),64*(ribn/8).floor,64,64])
    And add this below:

    Code:
     if @pokemon.setRibbon && @pokemon.setRibbon == @pokemon.ribbons[i]
               imagepos.push([sprintf("Graphics/Pictures/shiny"),230+68*(coord%4),78+68*(coord/4).floor,0,0,-1,-1])
     
    68
    Posts
    4
    Years
    • Seen Nov 9, 2023
    Add these lines to the top of the Boons Marks script:

    Code:
    class PokeBattle_Pokemon
      attr_accessor(:setRibbon)   # A Pokémon's attached ribbon
    end

    I've updated the download link to reflect this.
    I don't get an error anymore, but now the tagline won't display when I send out the Pokémon in battle.
     
    22
    Posts
    10
    Years
    • Seen Nov 24, 2023
    If anyone is interested in the other ribbons, I have completed some that have titles:

    Spoiler:
     
    3
    Posts
    6
    Years
    • Seen Sep 7, 2020
    I'm getting a syntax error when I implement this bit. I'm not sure if it's because I have elite battle installed?
    The Ribbon is being attached, just the icon is missing. In PScreen_Summary, find these lines:

    ribn = @pokemon.ribbons-1
    imagepos.push(["Graphics/Pictures/ribbons",230+68*(coord%4),78+68*(coord/4).floor,
    64*(ribn%8),64*(ribn/8).floor,64,64])
    And add this below:

    if @pokemon.setRibbon && @pokemon.setRibbon == @pokemon.ribbons
    imagepos.push([sprintf("Graphics/Pictures/shiny"),230+68*(coord%4),78+68*(coord/4).floor,0,0,-1,-1])

    If I leave this code out, the game works, just that every ribbon is drawn at the same position.
     
    68
    Posts
    4
    Years
    • Seen Nov 9, 2023
    I got an error after I caught a Pokemon with a mark.
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17.2]

    Exception: NameError

    Message: undefined local variable or method `marks' for #<PokeBattle_Battle:0xc2b18f8>

    Ribbons:64:in `pbStorePokemon'

    PokeBattle_Battle:186:in `pbThrowPokeBall_ebs'

    EliteBattle_0:371:in `pbThrowPokeBall'

    PItem_ItemEffects:3062

    PItem_ItemEffects:3061:in `call'

    EventHandlers:150:in `trigger'

    PItem_Items:269:in `triggerUseInBattle'

    PokeBattle_Battle:1765:in `pbRegisterItem'

    PokeBattle_Battle:3150:in `pbCommandPhase_ebs'

    PokeBattle_Battle:3099:in `loop'



    This exception was logged in

    C:\Users\Kids\Saved Games\Pokemon Essentials\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    Last edited:
    10
    Posts
    4
    Years
  • to make it work with ebs replace
    Code:
          @scene.sendingOut=true
          sendout=pbFindNextUnfainted(@party1,0)
          if sendout < 0
            raise _INTL("Player has no unfainted Pokémon")
          end
          playerpoke=@party1[sendout]
          @battlers[0].pbInitialize(playerpoke,sendout,false)
          pbDisplayBrief(_INTL("Go! {1}!",getBattlerPokemon(@battlers[0]).name))
          pbSendOutInitial(@doublebattle,0,playerpoke)
        end
    with
    Code:
          @scene.sendingOut=true
          sendout=pbFindNextUnfainted(@party1,0)
          if sendout < 0
            raise _INTL("Player has no unfainted Pokémon")
          end
          playerpoke=@party1[sendout]
          @battlers[0].pbInitialize(playerpoke,sendout,false)
          mark = @battlers[0].pokemon.setRibbon ? PBRibbons.getMarkTag(@battlers[0].pokemon.setRibbon) : nil
          marktitle = mark != nil ? " #{mark}" : ""
          pbDisplayBrief(_INTL("Go! {1}{2}!",getBattlerPokemon(@battlers[0]).name,marktitle))
          pbSendOutInitial(@doublebattle,0,playerpoke)
        end
    also nice plugin
     

    Boonzeet

    Pokémon Secrets of the Ages Developer
    188
    Posts
    15
    Years
  • Updated to v1.2, providing Essentials v18 support and removing the need to edit lines of code.

    Please note: This ends support for the Essentials v17.2 version. Please do not ask for help or fixes for this old version.
     
    Back
    Top