Affects in a New World or Notepad?

Posted by Kuldaj on Thu 25 Jul 2013 04:53 PM — 3 posts, 15,104 views.

USA #0
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?
Australia Forum Administrator #1
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.
USA #2
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.