• 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.
Portraits and nameboxes

Resource Portraits and nameboxes 1.0

Queenvespi

Novice
Member
Joined
Feb 7, 2021
Posts
12
Queenvespi submitted a new resource:

Portraits and nameboxes - A chatGPT designed script that adds portrait and namebox functionality into essentials.

Download the script from pastebin:
View: https://pastebin.com/7pxHyk9N


#===============================================================================# Usage Examples#===============================================================================# In your event, you can use the following commands in the text to display a portrait and header box:# - \portrait[PortraitName] # Shows a portrait...


Read more about this resource...
 

Luck1973

Novice
Member
Joined
Jan 20, 2021
Posts
18
image.png

Man i tried the script and faced that error, any thoughts of how fix it?
 

Luck1973

Novice
Member
Joined
Jan 20, 2021
Posts
18
where did you put the script? You didn't replace the regular messages script did you?
It's supposed to go above main like a regular script
I just put the script above main among the other scripts that i'm using.
 

PowermonTrainerLeafhead

Novice
Member
Joined
Sep 16, 2024
Posts
17
I'm getting the unexpected backslash error too. I suspect it's because there's some lack of recognition of the "\" syntax. Not sure what the fix is.
 

PowermonTrainerLeafhead

Novice
Member
Joined
Sep 16, 2024
Posts
17
*Never mind, I figured out what causes that error. When you use the command in a script, it will give that error.
However, when I try to put it in the text instead, it shows up raw in the text, without showing the image or header (like in the text box displayed it will literally show the "\Portrait[picturenamehere]" text command on display)
 

Queenvespi

Novice
Member
Joined
Feb 7, 2021
Posts
12
*Never mind, I figured out what causes that error. When you use the command in a script, it will give that error.
However, when I try to put it in the text instead, it shows up raw in the text, without showing the image or header (like in the text box displayed it will literally show the "\Portrait[picturenamehere]" text command on display)
That's strange, could you show me a screenshot of your message box so I can see how you entered it?
 

PowermonTrainerLeafhead

Novice
Member
Joined
Sep 16, 2024
Posts
17
That's strange, could you show me a screenshot of your message box so I can see how you entered it?
Thanks for the quick reply!
I'm having trouble putting up screenshots (I think I need to upload a link?) but this is the exact text in the event commands window:
Code:
Expand Collapse Copy
@> Text: \portrait["Vamp Tooth 1"] \header["Vamp Tooth"]  This is a test
 

Queenvespi

Novice
Member
Joined
Feb 7, 2021
Posts
12
The portraits need to be in a folder in Graphics/Pictures called Portraits. Did you put them there?
They also have to be named exactly the same as what you write; Case sensitive.
 

PowermonTrainerLeafhead

Novice
Member
Joined
Sep 16, 2024
Posts
17
The portraits need to be in a folder in Graphics/Pictures called Portraits. Did you put them there?
They also have to be named exactly the same as what you write; Case sensitive.
Yep they're in the Graphics/Pictures/Portraits folder, and I confirmed it's typed correctly by trying using the \f[(portrait name here)] method (the \f method worked)
 

PowermonTrainerLeafhead

Novice
Member
Joined
Sep 16, 2024
Posts
17
Is there a particular reason you're using both scripts?
At the moment not really, I'm trying a few different things till I find something that works well for my purposes, then removing what I'm not using.
The other one that might give conflict is the BW Speech Bubbles script.
 

PowermonTrainerLeafhead

Novice
Member
Joined
Sep 16, 2024
Posts
17
try placing it above any other script your using and see if it changes anything.
So it looks like I made some progress, by moving your script within the "Main" function rather than in a separate CustomFunctions script I can get the nameboxes to show up. However, the image doesn't show up still, though a small empty image box does show up. It also looks like I cannot mix this with the BW speech bubbles (though that isn't an issue if I don't use it) and the "\f" command cannot recover the image while your function is in use.
 
Back
Top