I know you can check to see if the player is wielding an item with %actor.eq%(wield), but is there a way to check for a specific weapon.
For example:
Code:
Name: 'block troll king entrance without flame weapon', VNum: [ 6721], RNum: [ 936]
Trigger Intended Assignment: Rooms
Trigger Type: Leave , Numeric Arg: 100, Arg list: None
Commands:
if %direction% == south
if %actor.eq(wield)% == 6719
return 1
else
return 0
%send% %actor% A force blocks you from going to the south.
%send% %actor% You hear a voice, 'Only the adventurer with a legendary weapon of Flames may proceed!'
end
end
I essentially want to block any access to the room to the south, unless they are wielding a specific weapon. The block works fine. Any help would be appreciated.
if %actor.eq(wield)% == 6719 <- I know this doesn't work but I figured it would be a decent example to try and explain what I am trying to do.
Thanks,
Treyorn
LuminariMUD