Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

[Answered] Formatting Hidden Text to remove spaces

18 years ago

I want to put a journal into WWII Grand Strategy. I have read the article by Havvy and that doesn't help me. I need to do something like the Mommy journal; with all the events recorded on a single page in chronological order like this:

WWI: Overwhelmed Turkish positions at Gallipoli with night attack and paratroopers. <points won>

1939: Ordered British Expeditionary Force to abandon all vehicles and make a break for Dunkirk. Every man safely back on British soil. <points won>

1940: Ordered RAF to abandon bases for safer bases inland; suffered increasingly severe attacks on industry as a result <points lost>

1940: Gave advice on bomb shelters to public, recieved Time Travel information from mysterious colleage. <points won>

like that. (the date is also the chapter title)

[Answered] Formatting Hidden Text to remove spaces

18 years ago

You could use the variable tweak (like the parlor room in Haunted.) 

%%VARIABLE%=%NUMBER%Text goes here%%

 I tend to make either/or variables with 0=false/no and 1=true/yes.  So, in my example, we'll say that giving advice on bomb shelters is linked to the BOMB variable, where 0 means you didn't or haven't and 1 means you did.  On the journal page, in the appropriate location, put:

%%BOMB%=%1%1940: Gave advice on bomb shelters to public, recieved Time Travel information from mysterious colleage. <points won>%%

Obviously, if a person doesn't have BOMB=1, there will be a blank space on the page-- I don't remember if Mommy's character sheet has this or not.

[Answered] Formatting Hidden Text to remove spaces

18 years ago
Oh, yes, and to add to Sethaniel's post, in order to get rid of the blank space, you can do this.

%%VARIABLE%=%1%FillertextFillertextfillertextfillertexttherefillertextfillertextisfillertextfillertextnofillertextfillertext
sadsdaskhdbawhfaslkkfuhsdfkljnsdlifufsdafswerewolvesoflondon-mostawesomesongever

%%%%VARIABLE2%=%1%filsfdslugnhfildsugnhliduhgefd

%%


This means if there is a whole list of things, it will come up with spaces in between them, but otherwise nothing will happen. As you can see.

Example One - A whole list

Message 1

Message 2

Message 3

Message 4

Example Two - Missing Message 2

Message 1

Message 3

Message 4

If that doesn't make sense I understand, I'll try and dumb it down.

[Answered] Formatting Hidden Text to remove spaces

18 years ago
This has already been asked. Please view this thread for evidence, otherwise, search the forums before asking questions next time. I know where you're coming on, but still, it was the top topic, you could have at least checked.

[Answered] Formatting Hidden Text to remove spaces

18 years ago

this was asked like last week, its still on the first page of the AdvEditor forum listing, thank you october for pointing this out and even still helping lol!

[Answered] Formatting Hidden Text to remove spaces

18 years ago

Come on guys, give him a break, all it said was scripting, he couldn't have known the answer to his question was in there.

riley

[Answered] Formatting Hidden Text to remove spaces

18 years ago

yeah, but he could have done a search posts, I guess. 

 FWW posts,  I think a person should definitely try to make sure that what they're asking for hasn't already been rejected, but asking for help shouldn't get a person in too much trouble.

[Answered] Formatting Hidden Text to remove spaces

18 years ago

"Obviously, if a person doesn't have BOMB=1, there will be a blank space on the page-- I don't remember if Mommy's character sheet has this or not."

Just checked it and it does have that.

riley

[Answered] Formatting Hidden Text to remove spaces

18 years ago
Yeah, couldn't find a way around it.

[Answered] Formatting Hidden Text to remove spaces

18 years ago
I kinda like it.  It sorta shows that theres scripting/variables involved.  Its sorta annoying puttign shitloads of work into something just to have no one notice.

[Answered] Formatting Hidden Text to remove spaces

18 years ago
if you wanted to get rid of the those spaces, lemme know and i will show you how... (cuz i am unsure of how ur code is right now)

[Answered] Formatting Hidden Text to remove spaces

18 years ago
WHAT?!?!?!?!??!?!?!?

[Answered] Formatting Hidden Text to remove spaces

18 years ago
you can get rid of those spaces in between...

[Answered] Formatting Hidden Text to remove spaces

18 years ago
Like I said before, madglee, you write it like this:

%%VARVAR%=%1%TextTEXTETEXTTTSODFKSD:LFMEOASR:GTLEMRSGEOPRSGJKdr;sgokerp;gjfld;s

%%

Put two spaces between them, which means that if it is there it will have the gap but if it isn't there there will be no gap.

[Answered] Formatting Hidden Text to remove spaces

18 years ago

Thats awesome!!!

[Answered] Formatting Hidden Text to remove spaces

18 years ago
yeah, thanks october.  It's totally obvious, once you point it out.

[Answered] Formatting Hidden Text to remove spaces

18 years ago
But then when you have ten to twenty in a row won't there be gaps when they are there, like spaces between each one?

[Answered] Formatting Hidden Text to remove spaces

18 years ago
Yeah, looked at your first post. There would be and I didn't want that.

[Answered] Formatting Hidden Text to remove spaces

18 years ago

ok...

when you have your:

%%VAR%10%ejsfkjsefkjf%%

%%VAR2%11%ksjfkjdfkjdsfk%%

you guys are putting a space, you need to do this:

%%VAR%10%ejsfkjsefkjf%%%%VAR2%11%ksjfkjdfkjdsfk%%

Notice how they are right after one another, not a single space in between? Now inside the %%text%% area, you need to put paragraph tags, so:

%%VAR%10%This text is shown<br>%%%%VAR2%11%This is the second line<br>%%

 

[Answered] Formatting Hidden Text to remove spaces

18 years ago
Awesome!!

[Answered] Formatting Hidden Text to remove spaces

18 years ago
I will add this to my adv scripting article when i resume it... i have a list of things to add and this has been added i guess lol

[Answered] Formatting Hidden Text to remove spaces

18 years ago
Cool!