Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Issue with $DEST

2 years 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

2 years ago
What's the title of the game?

Issue with $DEST

2 years ago
Ironman, its pretty lengthy

Issue with $DEST

2 years ago
The variable you set to 100 is called %COOKINGEXP

Issue with $DEST

2 years 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

2 years ago
On what page do you have this script?

Issue with $DEST

2 years ago
The script is on the link on page 180

Issue with $DEST

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

Issue with $DEST

2 years ago
Sorry Mizal, thanks for pointing that out!

Issue with $DEST

2 years 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

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

Issue with $DEST

2 years 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

2 years 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

2 years 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

2 years 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 :)