![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: Help with properties |
Thraka |
![]() here is my code.. it is not working someone please help me. define room <Freescape Ship - Your quarters> define object <Clothes> define object <Bed> indescription <You're standing in:> define text <intro> end define define text <win> end define define text <lose> end define
|
Alex |
![]() What do you mean by "it is not working"? I'm unable to test it as my usual computer is broken, and I don't know what problem you're experiencing exactly. |
Thraka |
![]() Is it possible to just look at it and read it like that? If you can, the If statements are not comming back true when they should.. I'm not sure if I'm testing a property in the if statement correctly so please check that. I want to check for if the clothes exist in the room, and if the bed.dirty = 1 The game starts out with these conditions so the if statement should work but it doesn't ever get to where it has the line msg <You tidy up your room by making your bed and picking up your clothes> |
Andy C |
![]() I'm no expert but it looks like the clothes are not in the room in this code. The define clothes section is not in the define room section. |
Andy C |
![]() OOPS - Ignore my last post! |
Computer Whizz |
![]() The reason for that is because the item "Clothes" start off hidden - when they are hidden they do not appear in the room (persay) and so quest ignores them... The only way you can get this to work is if you have them showing! Or you could do it so that instead of checking first, it reveals and then checks, then instead of hiding the clothes - simply MOVE them to an "limbo" room! Computer Whizz |