|
tejing Wanderer
Joined: 21 Dec 2001 Posts: 59 Location: USA
|
Posted: Tue Nov 05, 2002 4:51 am
can't hide something and collect data from it |
I'm trying to hide something that looks like this, but i can't seem to make anything work:
********************************************************************************
HP:50 EP:50> score
skills
i
Telindan the silvan Orc-target (Impartial)
HP: %d/%d END: %d/%d Exp: %d Avg. Stats: %d
Strength: %d Agility: %d Charisma: %d
Constitution: %d Coordination: %d Intelligence: %d
Level %d %w, %dd %dh %dm %ds old.
HP:%d EP:%d> Common Skills:
Aim : %d Attack : %d Awareness : %d
Defense : %d Dodge : %d Fire building : %d
Professional Skills: Other Skills:
%w %s : %d %w %s : %d
%w %s : %d %w %s : %d
. .
. .
. .
%w %s : %d %w %s : %d
HP:%d EP:%d> Gold: %d Encumbrance: %w
You are carrying the following on your person:
<something>
<something>
.
.
.
<something>
HP:%d EP:%d>
********************************************************************************
There are a few parts of that that could be different, like the line that says:
level %d %w, %dd %dh %dm %ds
Could be any of these also:
level %d %w, %dd %dh %dm %ds
level %d %w, %dh %dm %ds
level %d %w, %dm %ds
level %d %w, %ds
the part about professional skills and other skills and the list od skills beneath it could just not be there, the line that says:
You are carrying the following on your person:
could say instead
You are not carrying any items right now.
and have one empty line benaeth it, and then the prompt. and finally, the first line could be just "score"
I want to capture all the data from that and make it so I don't see it, but simply see a prompt when it's done. I want all the data from the lists too. I'm not quite sure how to go about making all those different things work right. I have an alias which starts it all and sends the commands score, skills and i, so if you want me to put something in that too, i can do that.
well, that was long. i hope someone can help
tejing |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Nov 07, 2002 2:18 am |
#CLASS score disable;#CLASS 0
#CLASS skills disable;#CLASS 0
#CLASS inventory disable;#CLASS 0
#TR {HP:(%d) EP:(%d)> } {#GAGOFF;#T- score} {score} {nocr|prompt}
#TR {HP:(%d) EP:(%d)> } {#GAGOFF;#T- skills} {skills} {nocr|prompt}
#TR {HP:(%d) EP:(%d)> } {#GAGOFF;#T- inventory} {inventory} {nocr|prompt}
#AL score {#T+ score;#GAGON;~score}
#AL skills {#T+ skills;#GAGON;~skills}
#AL i {#T+ inventory;#GAGON;~i}
That should take care of hiding it. Capturing the data is pretty
straightforward, just make a trigger to match each line, put parentheses around the
parts you want to capture, and use #VAR, #ADDITEM, #ADDKEY, etc. to place the data in
the variable of your choice.
LightBulb
Senior Member |
|
|
|
tejing Wanderer
Joined: 21 Dec 2001 Posts: 59 Location: USA
|
Posted: Thu Nov 07, 2002 7:48 am |
i actually figured out how to do it myself. its not quite so neat as your setup, but it works. I should have posted something when i figured out how to do it. oh well. thanks anyway.
Tejing |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|