• Having trouble receiving email verification when signing up? Contact an administrator via our Discord server!
  • Consider joining our Discord server if you haven't already! Discord is a free voice and text chat platform that's more or less a combination of Skype and Teamspeak. Using Discord, you can chat with other Relic Castle members in real-time! Wowza! Click here for the details!
Outfit basics

Tutorial Outfit basics

Alaguesia

The Magician of Oddities
Member
Posts
21
#1
Alaguesia submitted a new resource:

Outfit basics - The basics about outfits, and some neat things you can do with them

[tabs]
[tab=The Basics]
What is an outfit?
Basically, anything that changes your current player graphics, it doesnt have to be clothes, it could be hair color, you can even change it to a pokemon if you want to. Outfits are a thing in essentials since Essentials v13.

How to set an outfit?
There is a variable called $Trainer.outfit , this variable stores a number and it's 0 by default. That means 0 is the default...[/tab][/tabs]
Read more about this resource...
 

Maruno

Pokémon Essentials dev
Essentials Developer
Posts
286
#2
Perhaps the creative example 2 should describe how the pose charset is made (with a picture of the file as in the first two tabs). It will, for all four directions, depict the player facing down rather than the direction they are facing. This could be confusing to some people, as the player would still literally be facing sideways (or whichever direction), yet the graphic suggests otherwise.

Also, a reminder that you should have pose charsets for standing, cycling, surfing, perhaps diving, etc.
 

Alaguesia

The Magician of Oddities
Member
Posts
21
#4
The last part that shows an outfit only working in one room reminded me of Paper Mario when you can turn into retro Mario. I'm gonna have to remember to do that for future projects.
Paper Mario for N64 happens to be one of my favorite games and the Boo's Mansion and Chapter 3 in general happens to be my favorite part in the game. So I totally inspired that event on that room.
 

Grapz

Totally not slacking off
Member
Posts
15
#5
Great, and well done!

Poses are interesting, and something I'll need to keep in mind.

A good way to get around the problem of storing the character's pose in a Variable is - obivously - to do $trainer.outfit = $trainer.outfit+X, and then have X+(# of outfits) duplicate files stored. Of course, that takes more disc space so storing a variable is gonna be more reliable... if not a bit more coding.
 

Marina

Elite Trainer
Member
Posts
129
#6
I tried your tutorial out, it works on essentials v.16.2 but on v.17.2 it doesn't work. The player don't change his overworld graphic - just the trainer card sprite changes. the event is the exact same as yours
change screen tone color to black (wait 8 frames) script: $Trainer.outfit=1 (change screen tone color to normal)
the same for $Trainer.outfit=0
but the character doesn't change at all
 
#7
I tried your tutorial out, it works on essentials v.16.2 but on v.17.2 it doesn't work. The player don't change his overworld graphic - just the trainer card sprite changes. the event is the exact same as yours
change screen tone color to black (wait 8 frames) script: $Trainer.outfit=1 (change screen tone color to normal)
the same for $Trainer.outfit=0
but the character doesn't change at all
I'd double check that the outfit you're switching to is named correctly and in the right spot, because it should be changing both the overworld and trainer card graphics.
 

Marina

Elite Trainer
Member
Posts
129
#8
I'd double check that the outfit you're switching to is named correctly and in the right spot, because it should be changing both the overworld and trainer card graphics.
It's correctly. The Trainer sprite is called trainer000_1
and trchar000_1
the script is named correctly too
It's still isn't working...
 
Last edited:

Marina

Elite Trainer
Member
Posts
129
#9
Ok. I found out that on v.17.2 it only works with pbChangePlayer(2) and $Trainer.outfit=1
the Trainer.outfit just shows the Trainer sprite, map player etc, while the pbChangePlayer changes the overworld sprite
 

Mr. Gela

Discord: theo#7722
Member
#10
Ok. I found out that on v.17.2 it only works with pbChangePlayer(2) and $Trainer.outfit=1
the Trainer.outfit just shows the Trainer sprite, map player etc, while the pbChangePlayer changes the overworld sprite
pbChangePlayer initializes a different player character (by default 0 is Red and 1 is Leaf from FRLG), those being set up in the PBS folder, under metadata.txt, reading:
#-------------------------------
[000]
PlayerA=POKEMONTRAINER_Red,trchar000,boy_bike,boy_surf,boy_run,boy_surf,boy_fish_offset,xxx
PlayerB=POKEMONTRAINER_Leaf,trchar001,girl_bike,girl_surf,girl_run,girl_surf,girl_fish_offset,xxx

Can you post a screenshot of the whole event doing the $Trainer.outfit=1 script and a screenshot of the folder holding the graphics? Perhaps they are mis-named.
 

Marina

Elite Trainer
Member
Posts
129
#11
the trchar000_1


the trainer sprite


the trchars and trainer sprites inside the folder:


the boy_run, boy_bike, boy_surf etc.


NOTE: I'm not using boy_bike3, it's just there if I needed

The Event inside the map:


map player graphic:


now I'm just missing the VS animation, but I'll do that later.


metadata.txt:



I hope I did show everything here.
I don't want to use multiple characters, because I just have little space from 000 until 005, then I need the trchars from 006 and so on and I don't want to replace them, so I hope you'd find out, what's going on...
 
Last edited:

Mashirosakura

There is only one of many.
Member
#12
the trchar000_1


the trainer sprite


the trchars and trainer sprites inside the folder:


the boy_run, boy_bike, boy_surf etc.


NOTE: I'm not using boy_bike3, it's just there if I needed

The Event inside the map:


map player graphic:


now I'm just missing the VS animation, but I'll do that later.


metadata.txt:



I hope I did show everything here.
I don't want to use multiple characters, because I just have little space from 000 until 005, then I need the trchars from 006 and so on and I don't want to replace them, so I hope you'd find out, what's going on...
As Gela just said, pbChangePlayer changes the character, not the outfit. You'd be fine with just $Trainer.outfit=1, since that would change your player's sprite into the no hat version. So you wouldn't need that part of the metadata, either. The image files are fine. (Though watch out boy_bike3 should be boy_bike_3)
 

Marina

Elite Trainer
Member
Posts
129
#13
As Gela just said, pbChangePlayer changes the character, not the outfit. You'd be fine with just $Trainer.outfit=1, since that would change your player's sprite into the no hat version. So you wouldn't need that part of the metadata, either. The image files are fine. (Though watch out boy_bike3 should be boy_bike_3)
as I said before:
boy_bike3 isn't being used.
And I need that the overworld sprite changes too!
$Trainer.outfit=1 doesn't change the ow-sprite/icon
it just changes the sprite in the trainer card, I want the ow to change too
 
Top