Register forum user name Search FAQ

Gammon Forum

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 ➜ Affects in a New World or Notepad?

Affects in a New World or Notepad?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Kuldaj   USA  (6 posts)  Bio
Date Thu 25 Jul 2013 04:53 PM (UTC)
Message
Okay here is my issue, and I have been reading through all the forums trying to figure this out and I am not really sure if it is even possible. I am definitely new when it comes to making complex triggers and stuff.

What I am wanting to do is to take my spell affects from my game and either put them into a new world or a new notepad window. Currently I can send them to a new world without problem, but I am wanting to do a bit more with it.

Here is what the spell affects look like when you enter "affect".

<1894/1894HP 1359/1359MP 406MV> Exits:NEW (Low Mountain Paths) Day Time 6:30pm
!!!TICK!!!
affect
You are affected by the following spells:
Spell: detect evil : modifies none by 0 for 47 cycles, (23 1/2 hours)
Spell: detect good : modifies none by 0 for 47 cycles, (23 1/2 hours)
Spell: detect magic : modifies none by 0 for 47 cycles, (23 1/2 hours)
Spell: detect invis : modifies none by 0 for 47 cycles, (23 1/2 hours)
Spell: detect hidden : modifies none by 0 for 47 cycles, (23 1/2 hours)
Spell: giant strength : modifies strength by 16 for 2 cycles, (1 hours)

<1894/1894HP 1359/1359MP 406MV> Exits:NEW (Low Mountain Paths) Day Time 6:30pm

Now, I've been able to copy that in its entirety, but what I want to do is to just display the 'spell name' and then how many cycles it has left.

And after doing that, if it is possible, I would like the cycles to count down when a tick happens?

Like I said, I didn't see anything in the forums with this type of thing.. and I know if can be done in MUDLET, as most people I talked to in my game, say to just switch, but I have been using MUSH for a long while, and just don't want to switch, but I am stuck in figuring this out.

Any help?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 26 Jul 2013 01:16 AM (UTC)
Message
What MUD is this?

I did something similar a while ago for Aardwolf. It is called "spellups". It was a plugin that kept track of what you are talking about. The first one output to a separate world window, the later one used miniwindows.

It's not totally trivial to do, but the basic idea is to detect the lines you showed in a trigger and update various internal tables based on that.

Rough concept:

Template:faq=37 Please read the MUSHclient FAQ - point 37.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kuldaj   USA  (6 posts)  Bio
Date Reply #2 on Fri 26 Jul 2013 02:08 AM (UTC)
Message
It is a MUD called Dark and Shattered Lands.

I got most of the stuff I was doing from point 37 and other posts. I have it currently set as three triggers, outputting to a new world window. I had it for a bit updating the ticks/cycles remaining by automatically doing an affect check each tick (written in to my tick timer, so that each time change, it also updated the affects).

But even though using the affect has "no lag" it does sometimes interfere or cause a slight input lag from trying to do things at the top of the tick.

And I haven't quite figured out how to only output the spell name and cycles yet. I have the trigger for that currently set to capture

Spell: * : modifies * by * for * cycles, (* hours)

So %1 and %4 are what I am looking at wanting displayed in the separate window.

Thank you for the response, I will try looking through the plugins and deciphering them to meet my needs, and post again if I need more assistance. Although if you or anyone else has something they can tweak and post I'd love to look at it.
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.


14,456 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.