|
technomage Beginner
Joined: 18 Jul 2002 Posts: 13
|
Posted: Tue Nov 12, 2002 11:24 am
cant'make it fully work |
i have this almost working trigger
#TRIGGER {Edge City's Questmaster exclaims '{Clandestine's most heinous criminal|An enemy of mine}, {a|an|the} (*), {is terrorizing newbies!|is making vile threats against the IMPs!}'} {#var mob {%1}} "autoquest"
the problem is that if there isnt any of the 3 choises i wont work
i have tried it in several ways, but i cant figure out how to make it work
the line is like this
Edge City's Questmaster exclaims 'An enemy of mine, imperial cityguard, is making vile threats against the IMPs!'
i want to put the mob into variable |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Nov 12, 2002 12:00 pm |
#TRIGGER {Edge City's Questmaster exclaims '{Clandestine's most heinous criminal|An enemy of mine}, (*), {is terrorizing newbies!|is making vile threats against the IMPs!}'} {#var mob {%1};#IF (%ismember(%word(@mob,1),"a|an|the")) {mob=%trim(%remove(%word(@mob,1),@mob))} "autoquest"
|
|
|
|
technomage Beginner
Joined: 18 Jul 2002 Posts: 13
|
Posted: Tue Nov 12, 2002 1:10 pm |
ismember is case sensitive?
|
|
|
|
technomage Beginner
Joined: 18 Jul 2002 Posts: 13
|
Posted: Tue Nov 12, 2002 3:05 pm |
it is
is it possible to override a global alias for a room so if i leave the room the alias will
reset back to the original? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Nov 12, 2002 5:03 pm |
Should happen already. Try testing it out and see what happens.
Kjata |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Nov 12, 2002 6:44 pm |
To reduce the complexity of that trigger a bit:
#TRIGGER {Edge City's Questmaster exclaims '*, (*), is } {#var mob {%1};#IF (%ismember(%word(@mob,1),"a|an|the")) {mob=%trim(%remove(%word(@mob,1),@mob))} "autoquest"
LightBulb
Senior Member |
|
|
|
|
|