Non-threaded
Forums
»
Advanced Editor Forum
»
Read Thread
Get help from the experts on variables, scripts, items, and other scary things.
Craynsford123
Reply
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
Mizal
Reply
Issue with $DEST
2 years ago
What's the title of the game?
Craynsford123
Reply
Issue with $DEST
2 years ago
Ironman, its pretty lengthy
Mizal
Reply
Issue with $DEST
2 years ago
The variable you set to 100 is called %COOKINGEXP
Craynsford123
Reply
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
Mizal
Reply
Issue with $DEST
2 years ago
On what page do you have this script?
Craynsford123
Reply
Issue with $DEST
2 years ago
The script is on the link on page 180
Mizal
Reply
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.
Craynsford123
Reply
Issue with $DEST
2 years ago
Sorry Mizal, thanks for pointing that out!
Ogre11
Reply
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?
Craynsford123
Reply
Issue with $DEST
2 years ago
yeah, I mean, it's all adding up correctly so that is why I am confused
Ogre11
Reply
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.
Craynsford123
Reply
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?
Ogre11
Reply
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?
Craynsford123
Reply
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 :)
Home
Storygames
Random
Search
Newly Created
Top Rated
Fantasy
Grimdark Fantasy
Sci-Fi
Modern
Horror
Love & Dating
Mystery / Thriller
Family Friendly
Historical
Puzzles / Games
Edutainment
Fan Fiction
Forums
Newbie Central
The Lounge
News & Updates
The Parlor Room
Creative Corner
Writing Workshop
Reading Corner
Adv. Editor Forum
Wishing Well
Bugs and Problems
My Stuff
Storygames
Pictures
Messages
Notifications
Duels
Saves
Comments
Points
Commendations
Notepad
Profile
View Profile
Help & Info
CYOA History
About Us
Privacy Policy
Terms Of Service
Logon
version 23.22 | ChooseYourStory © 2001 - 2024, Halogen Studios Entertainment |
contact us