WatchNon-threaded

Forums » Advanced Editor Forum » Read Thread

Talk about it. Ask for help on it. Compliment it.

Issue with $DEST

9 months ago
IF %EXPCOOKING <= 100 THEN
$DEST := @P181

Does anyone have an idea as to why this doesnt take me to the destination page?

I do have the variable created
I have modfied varialbe on previous page to make it over 100
I also have the page created for p181 aswell

So it's baffling me as to why it isnt working

Issue with $DEST

9 months ago
What's the title of the game?

Issue with $DEST

9 months ago
Ironman, its pretty lengthy

Issue with $DEST

9 months ago
The variable you set to 100 is called %COOKINGEXP

Issue with $DEST

9 months ago
There is another one called %EXPCOOKING which is the one being increased by 300, so i set the link script to this

IF %EXPCOOKING <= 100 THEN
$DEST := @P181

which is why it should work

Issue with $DEST

9 months ago
On what page do you have this script?

Issue with $DEST

9 months ago
The script is on the link on page 180

Issue with $DEST

9 months ago
You set the variable to 300, but you told $DEST to only work if it was less than 101.

Issue with $DEST

9 months ago
Sorry Mizal, thanks for pointing that out!

Issue with $DEST

9 months ago
It sounds like it should work. Are you showing variables on each page, so you can see it is really under 100?

Issue with $DEST

9 months ago
yeah, I mean, it's all adding up correctly so that is why I am confused

Issue with $DEST

9 months ago
Not adding up, but showing.

I'm not sure if you've seen the option, but there's an option you can check to show variables on every page. Then, at the bottom of every page, it will show every variable and their values. Using that you can see what the program thinks the value is when you get to the page.

Issue with $DEST

9 months ago
Yeah I do use that option, it's very handy, it shows the %EXPCOOKING variable at 300, I wonder if that variable and the dest request have to be done on the same link?

Issue with $DEST

9 months ago
There is a very strict order that code is executed. However, if you're sitting on the page and it shows the variable is 300, it should ...

wait a minute.

Did you notice that your original code says do that only when the variable is LESS THAN 100?

Issue with $DEST

9 months ago
no I didnt wow, How stupid of me.. Ill fix that, sorry for wasting your and Mizals time but thanks for pointing that out to me :)