Modifying item description feature/layout question

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
For most custom scripts, you need to insert them in their own slot below Materials and above Main. Anywhere else and you might cause problems (like what's happening for you now). So to fix your problem, try moving the Word Wrap script there and see if that works.
I get no error message, the script just doesn't work there(also the script in question is def as a module, so I would imagine it belongs in the module section.

To kerbonkin: Oh all custom scripts go there, nomatter what kind of script it?
 
Last edited by a moderator:

Hollow

(◡‿◡✿)
Veteran
Joined
Jul 14, 2012
Messages
519
Reaction score
439
First Language
English
Primarily Uses
RMMV
Yes, the script definitely belongs under Materials. I just tried the script out in a blank project and it worked fine, so I think the problem might be something on your end. Do you have DEFAULT_WORDWRAP set to "true"? Or do you have the message tag "\ww" placed in whatever message box your testing?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Yes, the script definitely belongs under Materials. I just tried the script out in a blank project and it worked fine, so I think the problem might be something on your end. Do you have DEFAULT_WORDWRAP set to "true"? Or do you have the message tag "\ww" placed in whatever message box your testing?
Or do you have the message tag "\ww" placed in whatever message box your testing? I just put jiberist to test it out, so who knows.

Lol I just put real words in, and now it worked(atleast with the reg text box, I'm doubtful the item description box is gonna resize its self/get a scroll bar in game, to fit the added text, we'll see, but the script its self is working the way it was meant to work now atleast).

Thanks alot.
 
Last edited by a moderator:

Hollow

(◡‿◡✿)
Veteran
Joined
Jul 14, 2012
Messages
519
Reaction score
439
First Language
English
Primarily Uses
RMMV
Ah, that makes sense since the script judges different "words" by the spaces between them, so jibberish wouldn't have worked very well if there's no spaces.  :guffaw:

I'm glad you got it figured out, though! As for resizing the actual message box, you'll have to do that in the script editor, as well as rearrange and/or resize all the other windows, too, or else the description window will overlap them. Actually, I think you said earlier that you wanted it to scroll?

...Honestly, I think you should put up a script request for something like this.
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Derp, gg.

Nooby mistakes for the loss. Hopefully you got it working fine now.

All custom scripts go below Materials and above Main.
Yea it works now(I'm used to handling code, and the filing of such needs to be put in its specific section, along with the other scripts/code of its kind/file tag, evidently It's different in RPG Maker). Yea the script its self works fine now(its just it wasn't designed to do what I wanted it to do with the item info box, oh well)

Oh ok, glad someone found the problem, thanks.
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
Many custom scripts may use Modules as a form of defining what "settings" of the script the user can change, which the rest of the script (classes) can refer to and apply.

module Settings #Script users can change these to suit their needs   setting_1 = 5   setting_2 = 10end#DO NOT EDIT PAST THIS POINTclass Game_Battler   def thing value = damage      value += Settings::setting_1 value *= Settings::setting_2   endendWell something like that. The modules provided by the main engine are made and used completely differently however. But my example is what most custom scripts look like. (that use modules)
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top