|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: Thu Aug 21, 2003 7:44 am
Lightbulb still need help please or any other |
Did as said and replied to message with my output.
You helped me out with an alias earlier
rflag
#LOOP %numparam( ) {
#IF (%param( %i) = "DARK") {1}
#IF (%param( %i) = "DEATH") {2}
#IF (%param( %i) = "NO_MOB") {3}
#IF (%param( %i) = "INDOOR") {4}
#IF (%param( %i) = "PEACEFUL") {5}
#IF (%param( %i) = "SOUNDPROOF") {6}
#IF (%param( %i) = "NO_TRACK") {7}
#IF (%param( %i) = "NO_MAGIC") {8}
#IF (%param( %i) = "TUNNEL") {9}
#IF (%param( %i) = "PRIVATE") {10}
#IF (%param( %i) = "GODROOM") {11}
#IF (%param( %i) = "HOUSE") {12}
#IF (%param( %i) = "HCRSH") {13}
#IF (%param( %i) = "ATRIUM") {14}
#IF (%param( %i) = "OLC") {15}
#IF (%param( %i) = "*") {16}
#IF (%param( %i) = "NO_STEAL") {17}
#IF (%param( %i) = "NO_TRAVEL_OUT") {18}
#IF (%param( %i) = "NO_TRAVEL_IN") {19}
#IF (%param( %i) = "nopush") {20}
#IF (%param( %i) = "IMMORTAL") {21}
#IF (%param( %i) = "NO_RECALL") {22}
#IF (%param( %i) = "ARENA") {23}
#IF (%param( %i) = "DAM_ROOM") {24}
}
I am trying to now incorperate that into a trigger instead of an alias.
Room flags: DARK INDOORS NOSTEAL NO_TRAVEL_OUT NO_TRAVEL_IN
This is sample output of mud i am triggering off of.
Trigger is:
Room Flag: &roomflag
then for the action i had what you gave me earlier... but i need it instead of putting the number in the current window i need it to put the number in :quirk:
The trigger is pulling the variable find when i look at @roomflag it is showing all the fields. and i tried to
#IF (%param( %i) = "DARK") {:quirk:1}
but that did not work...
please help if you can
Thanks |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Aug 21, 2003 8:12 am |
Just use the alias. Put it in the quirk window.
#TR {Room flags: &roomflag} {#WINDOW quirk whateverthealiasnamewas @roomflag} |
|
|
|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: Thu Aug 21, 2003 9:45 am |
Here is the output i get on the quirk screen with that alias.
Its more like a notifcation it doesn't even enter the data.
It shows up but won't run the alias
But first here is trigger on strath window
#TR {Room flags: &roomflags} {#WINDOW quirk rflag @roomflags}
1388H 100M 310V > -- Room number : [1210] Room zone: [12]
1) Name : The Brain
2) Description :
A cold chill fills the room. The walls and floors lay empty besides a small
computer in the corner and a small piece of paper on the wall.
3) Room flags : NOBITS
4) Sector type : Inside
5) Exit north : -1 A) Exit northwest : -1
6) Exit east : -1 B) Exit northeast : -1
7) Exit south : -1 C) Exit southeast : -1
8) Exit west : -1 D) Exit southwest : -1
9) Exit up : -1 E) Exit down : -1
F) Extra descriptions menu
S) Script : Not Set.
Q) Quit
Enter choice : rflag DARK INDOORS NO_TRAVEL_OUT NO_TRAVEL_IN
q
y
1388H 100M 310V > You try to stifle a yawn..... |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Aug 21, 2003 5:28 pm |
Then use the alias in the main window, and include the refocusing in the alias. Don't forget the #NOOP.
#AL rflag {
#LOOP %numparam( ) {
#IF (%param( %i) = "DARK") {:quirk:1}
#IF (%param( %i) = "DEATH") {:quirk:2}
#IF (%param( %i) = "NO_MOB") {:quirk:3}
#IF (%param( %i) = "INDOOR") {:quirk:4}
#IF (%param( %i) = "PEACEFUL") {:quirk:5}
#IF (%param( %i) = "SOUNDPROOF") {:quirk:6}
#IF (%param( %i) = "NO_TRACK") {:quirk:7}
#IF (%param( %i) = "NO_MAGIC") {:quirk:8}
#IF (%param( %i) = "TUNNEL") {:quirk:9}
#IF (%param( %i) = "PRIVATE") {:quirk:10}
#IF (%param( %i) = "GODROOM") {:quirk:11}
#IF (%param( %i) = "HOUSE") {:quirk:12}
#IF (%param( %i) = "HCRSH") {:quirk:13}
#IF (%param( %i) = "ATRIUM") {:quirk:14}
#IF (%param( %i) = "OLC") {:quirk:15}
#IF (%param( %i) = "*") {:quirk:16}
#IF (%param( %i) = "NO_STEAL") {:quirk:17}
#IF (%param( %i) = "NO_TRAVEL_OUT") {:quirk:18}
#IF (%param( %i) = "NO_TRAVEL_IN") {:quirk:19}
#IF (%param( %i) = "nopush") {:quirk:20}
#IF (%param( %i) = "IMMORTAL") {:quirk:21}
#IF (%param( %i) = "NO_RECALL") {:quirk:22}
#IF (%param( %i) = "ARENA") {:quirk:23}
#IF (%param( %i) = "DAM_ROOM") {:quirk:24}
}
#NOOP
}
NOTE: You usually get better results when you ask follow-on questions by replying in the original thread, so that previous questions and answers are easily consulted. |
|
|
|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: Thu Aug 21, 2003 9:01 pm |
I think I know what is going on. But I don't know why.
I made alias in strath window for rflag to react in quirk window
If I rflag DARK NO_MOB strait from the strath prompt the quirk window responds correctly.
If I have it setup as a trigger to
Room Flag: &roomflags
Then action rflag @roomflags
and tried &roomflags
and just rflag
The trigger will set the @roomflags variable with DARK NO_MOB
Nothing happens. I think my problem is its trying to
rflag "DARK NO_MOB" both of them together and not seperateing the values.
What do you think? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Aug 21, 2003 11:07 pm |
Part of the problem is that your pattern doesn't match, the other part is that @roomflags isn't being expanded. Make sure you leave enough spaces between "flags" and ":".
#TR {Room flags : (*)} {rflag %1} |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Aug 22, 2003 2:40 am |
In what you have stated so far you have this somewhere:
#TR {Room flags: &roomflags} {#WINDOW quirk rflag @roomflags}
This causes "rflag DARK INDOORS NO_TRAVEL_OUT NO_TRAVEL_IN" to be displayed (that is the purpose of the #WINDOW command) in the quirk window. In order to have an action occur in a second window you must use the focus character (defaults to :) or establish triggers in that window. In this case the focus character would be preferrable:
#TR {Room flags: &roomflags} {:quirk:rflag @roomflags} |
|
|
|
|
|