Welcome to the Builder Academy

Question Script not opening door

More
29 Mar 2018 02:19 #7827 by Nero
Replied by Nero on topic Script not opening door
if pull /= %cmd% && lever /= %arg%
Works but it still seems a little bit buggy
It only works when it wants to even though I don't change anything around.
Also, in room 926 it somehow replaces my south exit with exit 929 even though I want the door/passageway to 929 to be north.

Please Log in or Create an account to join the conversation.

More
29 Mar 2018 04:20 #7828 by Nero
Replied by Nero on topic Script not opening door
Alright, I was mostly able to get this going with this code
Only issue is that the doors do not purge after I create them by pulling the lever.
Code:
if pull /= %cmd% && lever /= %arg% %send% %actor.name% You hear a faint click, then a scraping noise from the west. %echoaround% %actor.name% %actor.name% pulls on the lever, and you hear a scraping noise from the west. %at% 926 %echo% The doorway along the north wall slides open. %at% 928 %echo% You see the back of the doorway slide away, opening the exit to the room to the south! %door% 926 north room 929 %door% 926 north flag a %door% 929 south room 926 %door% 929 south flag a wait 5 s %purge% door 926 north %purge% door 929 south end

Please Log in or Create an account to join the conversation.

More
29 Mar 2018 05:33 #7829 by Nero
Replied by Nero on topic Script not opening door
Okay here was the final code that does what I want for this.
Now the question is how do I get the mob in the room to guard players from pulling the lever until the mobs are dead?

Code:
if pull /= %cmd% && lever /= %arg% %send% %actor.name% You hear a faint click, then a scraping noise from the west. %echoaround% %actor.name% %actor.name% pulls on the lever, and you hear a scraping noise from the west. %at% 926 %echo% The stone doorway along the north wall slides open. %at% 928 %echo% You see the back of the stone doorway slide away, opening the exit to the room to the south! %door% 926 north room 929 %door% 926 north flag a %door% 929 south room 926 %door% 929 south flag a wait 5 s %door% 926 north flag abcde %door% 929 south flag abcde %at% 926 %echo% The stone doorway makes a scraping noise as it slides shut. %at% 929 %echo% The stone doorway makes a scraping noise as it closes behind you! end

Please Log in or Create an account to join the conversation.

More
29 Mar 2018 05:37 #7830 by JTP
Replied by JTP on topic Script not opening door
Make a trigger on the mob that prevents pulling, and upon death the mob sets the room trigger with pull lever ?

Please Log in or Create an account to join the conversation.

More
29 Mar 2018 06:15 #7831 by Nero
Replied by Nero on topic Script not opening door
Correct, here is what I have but for some reason it's not working:

Trigger Editor [908]

1) Name : Mob Prevent
2) Intended for : Mobiles
3) Trigger types: Bribe
4) Numeric Arg : 100
5) Arguments :
6) Commands:
if pull /= %cmd% && lever /= %arg%
* Stop them! Return 0 prevents the command from going through.
return 0
wait 1
say You shall not pass, %actor.name%.

Q) Quit

Please Log in or Create an account to join the conversation.

More
29 Mar 2018 06:23 #7832 by JTP
Replied by JTP on topic Script not opening door
Try make it a command trigger and argument: pu

Remove the wait and when you have an If, finish with end

Please Log in or Create an account to join the conversation.

Time to create page: 0.227 seconds