Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Page Replacement?

12 years ago

I think an awesome feature would be permanently replacing a page with another one after clicking a link. 

Say you have a page that is: "You are in your house.". Then you click a link to destroy your house which replaces the original page with "You are in your destroyed house.".  Then any links leading to that original page would lead to the new one instead.

I'm currently having to do this with variables and its extremely time consuming and messy and would love a quick easy way to do it. :D

Btw, excuse me if there's already a way to do this, I'm very new here.. D':

Page Replacement?

12 years ago

You could also change the text on the page rather than having an entirely new page:

IF %HOUSEALIVE = 1 THEN

$PAGETEXT = "You are in your house."

ELSE IF %HOUSEALIVE = 0 THEN

$PAGETEXT = "You are in your destroyed house"

Not exactly what you wanted, but it would do pretty much the same thing.

Page Replacement?

12 years ago

Nice, this is at least simpler than the way I was doing it, thanks a ton! :D

Would still be a nice to be able to do it through links rather than script though.

Page Replacement?

12 years ago

I'm a little confused. The way you would do it with links and not script is just to create a new link that goes to a page about being in your now destroyed house. Honestly, the script way is the best though ;)

Page Replacement?

12 years ago

Yeah but when you have tons of pages leading to that page and tons of different changes that can be made to the page it becomes unfathomable. You need a bunch of a pages and a bunch of separate links and a bunch of variables to determine which link shows up and its messy and confusing.  I'd much rather just replace the page, essentially what robot just suggested but as an option within the link like restrictions or var. changes instead of having to use script.

Sorry if I'm being confusing or dumb @_@

Page Replacement?

12 years ago

You could always just make one link with a script that measures the variables and sends the player directly to one of any number of pages....

Page Replacement?

12 years ago

I think he's talking about there being several different pages each with it's own link to the page and he basically wanted a re-direct function that would send all attempts to the first page, to the new page. Your solution would work, but he'd have to copy it over to every possible link that would lead to that page in his story, which as he said is kind of a messy solution.

Page Replacement?

12 years ago

Oh I see now. That does make sense now. I was thinking he was trying to make one page with a link to a bunch of other pages.