Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Global Script Headache

9 years ago

Okay. I am wanting some text to appear at the end of every page after a certain point. I have tried doing this with the global page script, but I also have certain page scripts that add text to the end of the page. This is problematic, because, on such pages, the text from the global script appears first, when I want it to appear after everything else.

How can I go about remedying this problem, aside from putting the global text at the bottom of each page's script?

Global Script Headache

9 years ago
Global script runs before page script, so that's why it occurs.

You could have the pages just run in-line scripts. How much text is being put at the end of individual pages?

Global Script Headache

9 years ago

I get that.

What do you mean by "in-line scripts"?

Several paragraphs.

Global Script Headache

9 years ago
%%NUMBER%=%1%The number is 1%%

That will appear on the page if the variable number is equal to 1. You put the script on the page where you want it to appear.

Why the fuck are you using page scripts to make several paragraphs appear on the page? Can you give an example of this?

Global Script Headache

9 years ago

Ah, yes, that only works if you are wanting to append or change part of an existing paragraph.

Well, I am wanting to add entire paragraphs to the end of certain pages based on certain variables.

IF %RANDOMVAR = 1 THEN $PAGETEXT := $PAGETEXT +"<p> (Dialogue) <p> (More Dialogue)"

Global Script Headache

9 years ago

You can do whole paragraphs if you don't put a line break between tags.

Global Script Headache

9 years ago

That's nifty. I'll have to try that out.

Global Script Headache

9 years ago
"Ah, yes, that only works if you are wanting to append or change part of an existing paragraph. "

I can see why you'd think that, because it tends to leave an empty space, but if you're putting something there regardless, there won't be an empty space.

And I meant an actual example, lol. I know how to do it, I just want to know what could possibly require you needing entire paragraphs simply added to the end of the page. At some point it'd be easier just to have them on separate pages (where you just copy and paste the first part onto both), no?

Global Script Headache

9 years ago

Umm...no. I just didn't know you could start a new paragraph with an HTML tag.

You mean you actually want me to copy several paragraphs of plot revealing material, paste them here, then spend the next 30 minutes formatting them so that they are readable? Yeah, you're right. However, having a bunch of pages with the same title and 3/4 of text is problematic as well.