• 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.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
[v12+] Diploma (and how to do a simple scene)

Resource [v12+] Diploma (and how to do a simple scene) 1.1

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
325
-FL- submitted a new resource:

[v12+] Diploma (and how to do a simple scene) - Displays a diploma (and explain essentials scenes).

screen.png

Displays a game diploma like in official games. This is a very simple scene that I made with a lot of comments that can be used to understand how simple scenes work in Essentials.

Link

Tested on Essentials v12 and v20.1. If this script isn't working on latest Essentials version, please inform on...

Read more about this resource...
 

pkmnacademia

Trainer
Member
Joined
Mar 24, 2023
Posts
59
Is there a way to include variables on the diploma screen? I've tried a few different ways, but I haven't been able to get it to work.
 

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
325
Is there a way to include variables on the diploma screen? I've tried a few different ways, but I haven't been able to get it to work.
In ruby you can show variables using "#{variableName}". Example:
Ruby:
Expand Collapse Copy
a = 9001
print("Your variable is here -#{a}-")
Prints:
Code:
Expand Collapse Copy
Your variable is here -9001-


With this on mind, you can call
Ruby:
Expand Collapse Copy
pbDiploma("Here is the diploma text. Variable 42 is #{$game_variables[42]}.")
Or you can change line
Ruby:
Expand Collapse Copy
main_text = _INTL("This document is issued in recognition of your magnificent achievement - the completion of the National Pokédex.") if !main_text
to
Ruby:
Expand Collapse Copy
main_text = _INTL("Here is the diploma text. Variable 42 is #{$game_variables[42]}.") if !main_text
or to
Ruby:
Expand Collapse Copy
main_text = _INTL("Here is the diploma text. Variable 42 is {1}.", $game_variables[42]) if !main_text
The last one use extra args on _INTL method. This is better if you are planning to use the localization/translation system.
 

pkmnacademia

Trainer
Member
Joined
Mar 24, 2023
Posts
59
Thank you! I still can't for the life of me figure out what I was doing wrong, but I must have screwed up the punctuation. Your method works great.
 
Back
Top