• 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!
[v12+] Diploma (and how to do a simple scene)

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

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
373
-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...
 
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.
 
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.
 
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