|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Mon Jun 09, 2003 5:02 pm
Big Question about doing something |
Ok, In Dragonrealms there are empaths that can touch people and see what their injuries are. They then transfer the injuries to themselves and heal them off of themselves. When you touch someone you get something like this.....
-----------------------------------------------------------------------------------------
You touch Wyndlia.
You sense a successful empathic link has been forged between you and Wyndlia.
You feel the burning fire of pain and suffering building slowly as you instinctively draw out the truth behind Wyndlia's injuries.
Wyndlia's injuries include...
Wounds to the HEAD:
Fresh Internal: slightly tender -- insignificant
Wounds to the NECK:
Scars External: minor scarring along the neck -- minor
Fresh Internal: slightly tender -- negligible
Wounds to the RIGHT ARM:
Fresh Internal: slightly tender -- insignificant
Scars Internal: minor internal scarring -- insignificant
Wounds to the LEFT ARM:
Fresh External: light scratches -- negligible
Scars External: slight discoloration -- negligible
Fresh Internal: slightly tender -- negligible
Scars Internal: minor internal scarring -- negligible
Wounds to the RIGHT LEG:
Fresh External: light scratches -- insignificant
Scars External: slight discoloration -- insignificant
Fresh Internal: slightly tender -- insignificant
Scars Internal: an occasional twitching in the right leg -- more than minor
Wounds to the LEFT LEG:
Fresh External: light scratches -- insignificant
Scars External: slight discoloration -- insignificant
Fresh Internal: slightly tender -- insignificant
Scars Internal: minor internal scarring -- insignificant
Wounds to the RIGHT HAND:
Fresh External: light scratches -- insignificant
Scars External: slight discoloration -- negligible
Fresh Internal: slightly tender -- insignificant
Scars Internal: minor internal scarring -- insignificant
Wounds to the LEFT HAND:
Fresh External: light scratches -- negligible
Scars External: slight discoloration -- negligible
Fresh Internal: slightly tender -- negligible
Scars Internal: minor internal scarring -- negligible
Wounds to the CHEST:
Fresh External: deep slashes across the chest area -- damaging
Scars External: minor scarring along the chest area -- more than minor
Fresh Internal: minor swelling and bruising in the chest area -- more than minor
Scars Internal: a constant twitching in the chest area -- harmful
Wounds to the ABDOMEN:
Fresh External: light scratches -- negligible
Scars External: minor scarring along the abdomen -- minor
Fresh Internal: minor swelling and bruising in the abdomen -- minor
Scars Internal: minor internal scarring -- negligible
Wounds to the BACK:
Fresh Internal: slightly tender -- insignificant
Wounds to the RIGHT EYE:
Fresh External: a black and blue right eye -- minor
Scars External: minor scars across the right eye -- minor
Wounds to the LEFT EYE:
Fresh External: a black and blue left eye -- more than minor
Scars External: slight discoloration -- negligible
Fresh Internal: slightly tender -- insignificant
Wounds to the SKIN:
Fresh Internal: some minor twitching -- minor
Scars Internal: minor internal scarring -- negligible
Wyndlia has normal vitality.
-----------------------------------------------------------------------------------------
Now what I want is when I touch them to have a window that will say something like
Head:
Fresh Internal
Neck:
Scars External
Fresh Internal
etc.
Then I want to be able to click on, for instance, Fresh Internal under head and it will put the command, "transfer <name> head internal." It could get the name from the first line, "You touch Wyndlia.", and store it. I have had someone on this board help me with this along time ago but I have no been able to find that post so here I am asking again. I know how I want it to work and I know that it should because of when we tried it last time but I will need coding help until I get proficient with ZMUD coding. Thank you so much for anyone who is going to help. If you need any more info just let me know. You can respond here. Email me at RobAMacAF@Yahoo.com or IM me at Yahoo-RobAMacAF MSN-RobMacAF@msn.com or AIM RobMac00
Thanks again |
|
|
|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Tue Jun 10, 2003 1:42 am |
Try this:
#CLASS {helping}
#TRIGGER {^Wounds to the (%w):} {current_limb = %1}
#TRIGGER {^(%w)~'s injuries include...} {who = %1;#unvar heal_list}
#TRIGGER {^{Fresh|Scars} (%w)~:} {#additem heal_list {%lower( transfer @who @current_limb %1)}}
#TRIGGER {@who has (*) vitality.} {#pick @heal_list}
#CLASS 0
http://dune.servint.com
- Amfitrion. |
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Tue Jun 10, 2003 3:00 am |
Don't know what that was suppose to do but it opened a blank list that said I could choose things from it
|
|
|
|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Tue Jun 10, 2003 4:01 am |
quote:
Don't know what that was suppose to do but it opened a blank list that said I could choose things from it
I tried it again, and it works well for me. What version of zMUD do you use?
Pentium 4, 1.7Ghz.
256MB RAM
3dfx Voodoo3
Windows XP Professional
zMUD 6.55a
- Amfitrion. |
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Tue Jun 10, 2003 4:02 am |
6.62
|
|
|
|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Tue Jun 10, 2003 4:08 am |
quote:
Don't know what that was suppose to do but it opened a blank list that said I could choose things from it
To explain it a bit:
#CLASS {helping}
All those triggers will go into "helping" class.
#TRIGGER {^Wounds to the (%w):} {current_limb = %1}
This trigger determines what limb to heal. (Wounds to the HEAD:, for example.)
#TRIGGER {^(%w)~'s injuries include...} {who = %1;#unvar heal_list}
This one captures who do you want to heal (Wyndlia's injuries include...)
#TRIGGER {^{Fresh|Scars} (%w)~:} {#additem heal_list {%lower( transfer @who @current_limb %1)}}
This trigger adds items to a list named heal_list, which will later be picked by you (items look like this: "transfer wyndlia head internal").
#TRIGGER {@who has (*) vitality.} {#pick @heal_list}
This one displays the list, allowing you to show the list.
This trigger underlines red, but it works.
#CLASS 0
End of the class.
Pentium 4, 1.7Ghz.
256MB RAM
3dfx Voodoo3
Windows XP Professional
zMUD 6.55a
- Amfitrion. |
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Tue Jun 10, 2003 4:09 am |
The way we had it last time was how I said in my previous post and I was able to click on a word in the window. Don't remember exactly how we were doign it though
|
|
|
|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Tue Jun 10, 2003 4:20 am |
Type this:
#show @heal_list
If it is not empty, you have problems displaying the list.
My ICQ is 3675161, AIM amfiolai. If you read it in the next 2 minutes, find me, I'll help you online.
Pentium 4, 1.7Ghz.
256MB RAM
3dfx Voodoo3
Windows XP Professional
zMUD 6.55a
- Amfitrion. |
|
|
|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Tue Jun 10, 2003 6:53 pm |
quote:
The way we had it last time was how I said in my previous post and I was able to click on a word in the window. Don't remember exactly how we were doign it though
Even though the last version worked for me, this version should work for you too:
#CLASS {helping}
#TRIGGER {^Wounds to the (%w):} {current_limb = %1}
#TRIGGER {^(%w)~'s injuries include...} {who = %1;#unvar heal_list}
#TRIGGER {^{Fresh|Scars} (%w)~:} {#additem heal_list {%lower( transfer @who @current_limb %1)}}
#TRIGGER {@who has (*) vitality.} {#pick {@heal_list}}
#CLASS 0
I forgot to add {} to #pick {@heal_list}...
Let me know if it works.
Pentium 4, 1.7Ghz.
256MB RAM
3dfx Voodoo3
Windows XP Professional
zMUD 6.55a
- Amfitrion. |
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Tue Jun 10, 2003 7:38 pm |
I will test it when I get home from work. <fingers crossed>
|
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Wed Jun 11, 2003 3:55 pm |
No, That did not work either. I have also spotted a flaw in the way it works. In my game after I touch them I can only take a couple injuries at once. Once those are done I take more. To get that to work with the way you have it I would have to keep touching them so I can select the injuries.
The way we had it last time was it would pop open a new window and then put the problems (text) into the window. The problem was actually a link, sorta, that I could click on like a web page. This would then send the command to the mud. I liked this approach because the window was always up there with the problems and so I didn't have to touch them again to heal them more.
I don't remember what we used to do this, MXP maybe? It was some 3 letter word. I know it lets us replace words and such and that is what was used there.
I hope this hels |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Wed Jun 11, 2003 7:13 pm |
Wow! You found the old post! THANK YOU SO MUCH! I tried looking for it but I could only get the forums to go so far back. THANK YOU THANK YOU THANK YOU!
|
|
|
|
|
|