SOLVED:2nd walkable Area issues

Started by NickyNyce, Sun 13/03/2011 17:52:25

Previous topic - Next topic

NickyNyce

I walk into a room from the left, only 1 object, a big rock blocking the door on the right, I already have a stick (istick) in my inventory and have made commands to use stick on the rock and then to make rock invisible ( all works)....I made two walkable areas so that i cant walk past the rock until i remove it....( I used enters room before fade in and wrote a command to removewalkable area (2) if rock is there....(rock is now removed)...I am now able to walk past the rock and enter the new room via (right edge) which is located on 2nd walkable area... The strange part is...it works...but when i come back into the room later the 2nd walkable area is off again and now i can no longer re-enter the once blocked room.

Im so close, yet so far away...please help ;D

monkey0506

Sounds to me like you're calling RemoveWalkableArea in room_Load but not checking whether or not it should in fact be left on (presumably you could just check whether oRock is visible).

NickyNyce

Quote from: monkey_05_06 on Sun 13/03/2011 18:46:38
Sounds to me like you're calling RemoveWalkableArea in room_Load but not checking whether or not it should in fact be left on (presumably you could just check whether oRock is visible).


I really appreciate the quick response...ty..."Problem solved"..... ( under the Room after fade in i type...if (orock.visible)removewalkablearea(2);
But then i also needed to go to objects and add to the event of me using the stick on the rock...after i made the rock invisible i needed one last line (restore walkablearea(2);

And that did the trick...Thanks Again...

monkey0506

I'm glad you got it sorted out. :) If you edit your first post (click the "Modify" link) then you can update the title of this thread to show "SOLVED". ;)

SMF spam blocked by CleanTalk