Welcome to the Builder Academy

Question Script not opening door

More
29 Mar 2018 06:47 #7833 by Nero
Replied by Nero on topic Script not opening door
Still seems to allow the character to pull the lever and no prevention from the mob

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

More
29 Mar 2018 06:56 #7834 by JTP
Replied by JTP on topic Script not opening door
You did remove the room trigger first right ?

Atm just a trigger on the mob to prevent. And Then a new trigger on the mob being a death trigger to attach the actual trigger.

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

More
29 Mar 2018 07:00 #7835 by Nero
Replied by Nero on topic Script not opening door
So just get rid of the room trigger and just have this trigger off of the mob with the prevent then if death trigger that allows me to pull lever?

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

More
29 Mar 2018 07:20 #7836 by JTP
Replied by JTP on topic Script not opening door
Yes remove the room trigger

2 triggers on mob
1 that prevents pulling
And 1 death trigger to attach the Real pull trigger that actually opens the door

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

More
29 Mar 2018 07:27 #7837 by Nero
Replied by Nero on topic Script not opening door
Alright so both triggers on mob should be this then?
First command trigger:
Code:
if pull /= %cmd% && lever /= %arg% * Stop them! Return 0 prevents the command from going through. return 0 say You shall not pass, %actor.name%. end

Second death trigger would be?:
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 07:39 #7838 by JTP
Replied by JTP on topic Script not opening door
Second trigger on mob would be type death

And just 1 Line:
attach vnum %self.room% Or maybe its %self.room.id%

Vnum being the number your actual room trigger has.

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

Time to create page: 0.204 seconds