Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Anyone with patience for a total scripting n00b? (Another Question added!)

All right. I'm trying to use the biographies script located here. The only problem is... I know NOTHING about manipulating script or the terminology used to in the instructions given. I have no clue how to make this work, to add in my character information, etc.

So, is there anyone here with the patience to help me? I'm sort of... almost blind, so that's probably part of the reason I don't know what I'm doing with code clutter.
 
Assuming you are using RMXP, there is one error on line 175-176, you need to replace...
Code:
#   self.contents.font.name = $defaultfonttype
#   self.contents.font.size = $defaultfontsize
   self.contents.font.name = Font.default_name
   self.contents.font.size = Font.default_size

then it seems to work fine.

for each of the properties (i.e. CHAR_AGE, etc...), you have an array for all of your actors. (starting at line 62)
CHARA_AGE = [<actor 1 age>, <actor 2 age>, etc..]
So if their ages are, respectively 18, 22, 65, ....
CHARA_AGE = ["18","22","65"]

The rest of the properties work the same.

The descriptions start at line 98. Simply replace
L1 = "Insert first line of description here"
with
L1 = "Brew is typically a lover, not a fighter. But when provoked, can be deadly."

To install the script, open the script editor & on the left, Right-Click on "Main" (at the bottom), and select "Insert".
Give the new script a name ("Biographies", or whatever you like), and cut & paste the script into the right side.

Fix lines 175-176 as shown above.

To see it in action, test play the game, hit "X" or "Esc" to see the menu, select "Status", select the first character, from the Status window select the "Action" key again to see the bio.

If you want to make changes, add, delete stats, whatever, detail your changes here & we'll help.

Be Well
 
All right. Two questions:

First one I assume is pretty easy. I'd like to get rid of Blood Type and change Weight to Familiar.

And, my second question is about changing some of this information in game. I have one character who is supposed to be something of a mystery for a while, but you end up finding out who he is later on. I don't want the biography to give it all away, but I don't want it to say "Unknown" after the information is revealed.
 
Each of the "constant" arrays like "CHARA_AGE" are like global variables.
You can change the values directly. Although, the first element in an array is addressed
with '0' rather than '1'.  so, to change the age of actor 1 to 19, you would use the
Script command:

CHARA_AGE[0] = "19"

Be sure to use the quotes so the value is stored as a string & not a number.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top