Large Description for Items

GO TO ADMIN PANEL > ADD-ONS AND INSTALL ABSTRACT SIDEBAR TO SEE FORUMS AND SIDEBAR

jaye

Villager
Joined
Feb 15, 2016
Messages
69
Points
44
Location
Wonderland
Website
www.sugarzoozoo.com
I am trying to create a small code that will allow a larger description for items and etc via notebox in the database. Does anyone know how to do this?
 

Boy Who Codes

Praised Adventurer
Joined
Oct 27, 2015
Messages
472
Points
223
Website
soulxregalia.wordpress.com
If so, you can make the notebox value in a variable set as strings. Then access those via the window where you want them displayed. You can always go with checking the beginning tag, and then the ending tag. Any value after those tags would be the string description you want.

Ex:

<itemDescription>
The silver sword maybe an ordinary battle weapon, but in the face of a vampire, any silver made weapon induces deadlier strikes.
</itemDescription>

In this, all you have to do is detect the tag of <itemDescription> and </itemDescription>, so any value inside those close tags would be placed in a new variable where you would of course draw the text in on the custom window.
 

jaye

Villager
Joined
Feb 15, 2016
Messages
69
Points
44
Location
Wonderland
Website
www.sugarzoozoo.com
If so, you can make the notebox value in a variable set as strings. Then access those via the window where you want them displayed. You can always go with checking the beginning tag, and then the ending tag. Any value after those tags would be the string description you want.

Ex:

<itemDescription>
The silver sword maybe an ordinary battle weapon, but in the face of a vampire, any silver made weapon induces deadlier strikes.
</itemDescription>

In this, all you have to do is detect the tag of <itemDescription> and </itemDescription>, so any value inside those close tags would be placed in a new variable where you would of course draw the text in on the custom window.
Oh. Ok. Thank you so much! It sounds simpler than I was making it. Lol.
 

Aika

NPC
Joined
Nov 8, 2016
Messages
1
Points
1
Age
24
It may sound stupid, but I really would benefit a plugin like that :/ the only things I found are for Ace, and I know 0 Java, so I can't really make it myself with my knowledge :/ could you perhaps lend me a hand, if you already have something like that? I hope to not create problems just asking away...

Picture below showing the issue. All things are placeholders, but give the idea of the problem.
(A weapon picture could be a nice addition too (?))
 

Attachments

Top