Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Healing Problems.
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| Morgoth
Israel (38 posts) Bio
|
| Date
| Reply #15 on Sat 21 Jun 2003 06:37 PM (UTC) |
| Message
| | Ok thanks for helping me out, as a side note though, I wish I had diag, and focus. But I don't have any creds, so goodbye nifty skills for me :(. | | Top |
|
| Posted by
| Morgoth
Israel (38 posts) Bio
|
| Date
| Reply #16 on Sat 21 Jun 2003 07:52 PM (UTC) |
| Message
| Ok. It doesn't work
Here's my script.
Sub Snake (name,output,wildcs)
world.setvariable "snake", "on"
world.enablegroup "afflictionson", 0
End Sub
Sub Snakeoff (name,output,wildcs)
world.setvariable "snake", "on"
world.enablegroup "afflictionson", 1
End Sub
Sub Snakeattack (name,output,wildcs)
Dim snake
snake = world.getvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 1
world.enabletrigger "afflictionsoff", 1
End If
End Sub
Sub Snakeattackoff (name, output, wildcs)
Dim snake
snake = world.getvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 0
world.enabletrigger "afflictionsoff", 0
End If
End Sub
Now one thing I don't get, is how can you set snake to on if it isn't declared yet? shouldn't you declare the variable outside it? Second thing, most snakes do---
Dirgath sinks his fangs into your body and you wince in pain.
Your vision is flooded with light, and your face suddenly reddens.
Any ideas how to get past that?
thanks.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #17 on Sat 21 Jun 2003 09:56 PM (UTC) |
| Message
| |
| Posted by
| Bobble
Canada (76 posts) Bio
|
| Date
| Reply #18 on Sun 22 Jun 2003 03:36 AM (UTC) |
| Message
| Okay, it's one of those days, I copied a few things incorrectly:
Quote: Sub Snakeoff (name,output,wildcs)
world.setvariable "snake", "on"
world.enablegroup "afflictionson", 1
End Sub
change 2nd line to:
world.setvariable "snake", "off"
I should also ask what's not working, are the all the illusions fooling it or just the ones like the example you just gave? Make sure you read up on the link Nick gave.
I got fooled by that bite illusion a lot, so what I chose to do was to completely ignore any bite, unless it was scytherus.
So the trigger
.+ sinks (his|her) fangs into your body and you wince in pain.
calls this subroutine instead
Sub bite (a, b, c)
Dim snake
snake = world.getvariable ("snake")
If snake = "on" Then
world.enabletrigger "scytheruson", 1
world.enabletrigger "scytheruson1", 1
world.enabletrigger "afflictionsoff", 1
End If
End Sub
scytheruson and scytheruson1 are the labels for the scytherus trigger texts:
You feel light headed and dizzy\.$
You swoon as you suffer a toxic relapse\.$
Which also belong to the group "afflictionson"
If you're fighting a snake that combines the illusion you gave and _actual_ bites, you're going to get fooled a lot, there's no way to beat it with an automated system. I've found in my experience that snakes don't use bite a lot other than to give scytherus, unless they don't have dstab yet. If you have, or can get diagnose in survival, your problems can go away quite quickly. So if you're fighting snakes a lot, I reccommend spending some lessons in survival.
|
Open the watch. | | Top |
|
| Posted by
| Morgoth
Israel (38 posts) Bio
|
| Date
| Reply #19 on Sun 22 Jun 2003 04:09 AM (UTC) |
| Message
| | How can diag help so much unless you are running or shielding A LOT. Diagnose takes eq. So?? | | Top |
|
| Posted by
| Bobble
Canada (76 posts) Bio
|
| Date
| Reply #20 on Sun 22 Jun 2003 04:15 AM (UTC) |
| Message
| | Diag takes your eq for 1 second. So in one second you can know, with absolute certainty what you are afflicted with. And you can set up triggers and variables to record this, if that's your pleasure. Do a diag after each of your attacks or every two attacks, whatever your preference, whatever your preference, and you should find that the snake isn't able to lock up your system as badly. I find that 1 second every so often isn't really a waste. |
Open the watch. | | Top |
|
| Posted by
| Morgoth
Israel (38 posts) Bio
|
| Date
| Reply #21 on Mon 07 Jul 2003 01:53 PM (UTC) |
| Message
| Ok. I need help again. (surprise surprise). The script doesn't work for some reason, although I don't get any real error. (On a side note, I added another defense that turns off first messages and only catches primary afflics, so I can't be fooled with bite messages). Here's my script, can anyone tell me whats wrong with it?
------------------------------------------------------------
Sub Snake (name,output,wildcs)
world.setvariable "snake", "on"
world.enablegroup "afflictionson", 0
World.EnableTrigger "Afflic_Curare_10", FALSE ' disable trigger
World.EnableTrigger "Afflic_Aconite_1", FALSE ' disable trigger
World.EnableTrigger "Afflic_Eurypteria_1", FALSE ' disable trigger
World.EnableTrigger "Afflic_Epidermal_2", FALSE ' disable trigger
World.EnableTrigger "Afflic_Kalmia_1", FALSE ' disable trigger
World.EnableTrigger "Afflic_Darkshade_2", FALSE ' disable trigger
End Sub
Sub Snakeoff (name,output,wildcs)
world.setvariable "snake", "off
world.Enablegroup "afflictionson", 1
World.EnableTrigger "Afflic_Curare_10", TRUE ' enable trigger
World.EnableTrigger "Afflic_Aconite_1", TRUE ' enable trigger
World.EnableTrigger "Afflic_Eurypteria_1", TRUE ' enable trigger
World.EnableTrigger "Afflic_Epidermal_2", TRUE ' enable trigger
World.EnableTrigger "Afflic_Kalmia_1", TRUE ' enable trigger
World.EnableTrigger "Afflic_Darkshade_2", TRUE ' enable trigger
End Sub
Sub snakeattack (a, b, c)
Dim Snake
Snake = worldgetvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 1
world.enabletrigger "afflictionsoff", TRUE
End If
End Sub
Sub snakeattackoff (a, b, c)
dim snake
snake = worldgetvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 0
world.enabletrigger "afflictionsoff", FALSE
End If
End Sub
Sub snakeattackoff (a, b, c)
dim snake
snake = worldgetvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 0
world.enabletrigger "afflictionsoff", FAlSE
End If
End Sub
Triggers:
trigger
enabled="y"
match=".+ sinks (his|her) fangs into your body and you wince in pain\.$"
regexp="y"
script="Snakeattack"
sequence="100"
>
<trigger
enabled="y"
match="^\d+h\, \d+m"
regexp="y"
script="Snakeattackoff"
sequence="100"
>
<trigger
enabled="y"
match=".+ pricks you twice in rapid succession with (his|her).+$"
regexp="y"
script="Snakeattack"
sequence="100"
>
Here's a sample of one of my triggers.
trigger
enabled="y"
group="Afflictionson"
match="Your state of paralysis prevents you from doing that."
name="Afflic_Curare_5"
script="Healing"
sequence="100"
>
-----------------------------------------------------------
| | Top |
|
| Posted by
| Morgoth
Israel (38 posts) Bio
|
| Date
| Reply #22 on Mon 07 Jul 2003 01:59 PM (UTC) |
| Message
| | Ok here is my follow up post as I thought the last one was already long as it is. I want another backup just encase some snake manages to get through my system. the thing is this, if I lets say they manage to pass a stupidity on me, then I eat a goldenseal, when I recover balance, and it hasn't been healed it goes back to a state that its healed. | | Top |
|
| Posted by
| Morgoth
Israel (38 posts) Bio
|
| Date
| Reply #23 on Tue 08 Jul 2003 11:20 AM (UTC) |
| Message
| |
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #24 on Tue 08 Jul 2003 09:39 PM (UTC) |
| Message
| It is hard to help with things where you say "it doesn't work" without giving any details. For instance, what output arrives from the MUD, exactly? (copy and paste please).
What does it do? What do you expect it to do?
However I see a couple of things. You seem to have two subs called snakeattackoff for some reason.
You also have the line:
world.setvariable "snake", "off
There is a missing closing quote there.
Rather than sitting around waiting for other people to debug your scripts I suggest trying to do it yourself.
Here are some things you can do:
- Put in world.note here and there to check that scripts are running when you expect, and that various variables are what you expect. You can always comment them out later.
- Make each trigger colour the matching line in a distinctive colour. Then you can see if the triggers are matching or not. If not, work out why not.
- Use the world.debug facility or the configuration screen to check whether variables are set to what you expect.
- The enablegroup command returns a count of the number enabled or disabled. You could display that to see if the number of things being enabled/disabled is what you expect.
eg.
count = world.enablegroup ("afflictionson", 0)
world.note count & " items in afflictionson group disabled"
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
84,145 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top