|
robert Wanderer
Joined: 25 Feb 2004 Posts: 98
|
Posted: Tue Nov 03, 2009 3:13 pm
[3.12 Pro] Room settings do not delete or deactivate. |
I have multiple room scripts that are not deleting or deactivating their triggers. They are just in my root path firing all the time. I could fix this by putting IF statements in the triggers to not do anything if I am not in the room, however the help says this is not needed: "Any settings defined in a room script are added to a temporary Class and are removed when you exit the room. This allows you to define aliases, triggers, buttons, etc that are only active in a particular room." The rooms are walked through in FAST follow mode using favorites to path around.
Thanks!
Robert |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Nov 03, 2009 3:21 pm |
Haha. Ninja'd by you putting a complete subject. :p
Could you please post a subject with more than just the version you're using? Otherwise, it looks like you're just posting the same thing over and over again, and you're not going to get favorable replies.
As for your answer, have you looked at using the key aspect for class folders? You can make class folders for the rooms, and put room### (which the ### refers to the room vnum) in the key box. Then, that class folder is only activated anytime you walk in that room, and deactivates when you exit the room.
I'd go into more detail, but I'm not at a computer right now.
Charneus |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 03, 2009 5:13 pm |
The Help system hasn't been updated to reflect all of the changes in the new mapper.
In the new mapper, there is a Room folder within the Map object for each room that has a script. When you enter the room, the room folder is enabled, and any script in the onEnable tab will be executed.
Instead of creating your trigger each time in the onEnable tab of the room folder, just create a normal trigger within the room folder itself (just like with any other Class folder). When you enter the room, the trigger will be enabled, and when you leave the room, the trigger will be disabled. It is much faster than creating and deleting triggers all the time.
The new mapper no longer uses any temporary Class as mentioned in the help files. |
|
|
|
robert Wanderer
Joined: 25 Feb 2004 Posts: 98
|
Posted: Wed Nov 04, 2009 12:44 am |
I changed one of the rooms, and this seems to work fine.
Thanks Zugg! |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|