Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Stat Link

10 years ago

Is there a way for me to have a link or an item that is on every page, and, when clicked, brings up the persons stats for the game. It would change each page based on the variables, so is there anyway I can do this? I think I might have seen it done through an item in a game once, but I don't remember.
 

Stat Link

10 years ago

You mean you want to make a stat sheet item? It's not hard to do. I can explain if that's the kind of thing you want... did you ever see my "page" item in The Other World?

Stat Link

10 years ago

Make an item, name it 'character stats' or something like that, have the default to a specific page. Have it automatically in your inventory at the beginning of the game, or able to be picked up. It can be used at anytime during the game, no matter what chapter you're in, to view stats. It will be a single page that it links to; no need for lots of pages every time the stats change.

The page it's self if what changes. Enable advanced scripting if you haven't already, and open $PAGETEXT on the item page, the little blue ':=' that's on the opened page next to the title.

If you are confused about how $PAGETEXT works, then here is everything I understand about it. Last post on the thread.

Stat Link

10 years ago

Mmm ... well, using the $PAGETEXT part of the script is only necessary if you're actually going to change the text itself, though. If you're just setting up a stat sheet like, "strength," "speed," "fear," "charisma," "sanity," and so forth, and you just want the variable amount to display as it changes, then it's much simpler to make the corresponding variables and then script it on page:

Strength: %%STRENGTH%%
Stamina: %%STAMINA%%

And so on. (Actually, if the text changes are minor, you could still do it on page like that.)

Stat Link

10 years ago

Right, forgot that was the default for what stats are used for. I was thinking of the way I've been setting them up, with status of how the main character views other people, and then his own tendencies (smart aleck, completely serious all the time, silent, talks too much, etc.) in a sentence instead of just numbers on a page.

Stat Link

10 years ago

Hey, you may be right, I don't know. xD That's why I asked Angel for clarification.

Your advice may end up just being the best choice over all. When changing large blocks of text, scripting it on page is a pain.
 

Stat Link

10 years ago

Basically I want an item that can be clicked on any page and will lead to another page which has all the variable stats on it. I think I can try it with this information though. I'll see how it goes!

Stat Link

10 years ago
That's the default way an item works...

Stat Link

10 years ago

I mean a page that has the stats on it. It would change depending on how the variables change.

Stat Link

10 years ago
Which you would change via the page scripts. Wouldn't affect the way the item works.

Unless you're saying a different page each time the stats change, which while possible seems like far more work.