Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

How to Do This

11 years ago
Hi,
So I'm trying to create multiple items with multiple pages all with a previous page link, using Killa's codex method. How do I do that, creating multiple items I mean and still use the codex method?

How to Do This

11 years ago

Can you give an example of this? 

How to Do This

11 years ago
Ok, so I have a teleporter, and a thing where there's a button that covers your body with energy, so like bullets won't hit you and stuff. On the teleporter, i have 3 options. I used the codex method in the article Killa wrote for it. But when I tried to do another one for the armor thing, it didn't work, you can't press the back link to get back to the game, it's a never ending lop.

How to Do This

11 years ago

Killa_robot's codex won't work in conjunction with another item.

For example, if you use item 1, then use the codex, the codex will ALWAYS remember the last page you was on, and that last page is whatever page item 1 brings you to.

That being say, once you press the previous page on page 1, it will bring you back to the codex.

Pressing the codex will bring you back to what page item 1 brings you to.

Then it will go in an infinite loop.

I suggest you find anothey way to do this.

How to Do This

11 years ago
I'm trying to make 2 seperate codexs, accept at cirtain pages, it will bring you to another page when you activate a cirtain link in the codex, but I haven't gotten to that yet. I'm thinking about PMing Killa about this.

How to Do This

11 years ago

I haven't tested it yet, but theoretically I suppose changing this:

IF %ISCODEX = 0 AND $PAGEID != 10 THEN
%LASTPAGE := $PAGEID

To this:

IF %ISCODEX = 0 AND $PAGEID != 10 AND %ISCODEXB = 0 AND $PAGEID != 15 THEN
%LASTPAGE := $PAGEID

Where %ISCODEXB is used to determine if they're in the second codex, and page 15 is where the actually second codex is, would be the first step. Then mimic the stuff you have to do for the first codex, with the second one.

How to Do This

11 years ago
Damn, and I just got done scruing with some item scripts and stuff. I'll see if the way I did it works, and if it doesn't I'll use the way you just posted.