Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Wed Feb 19, 2025 6:10 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 7:12 am 
Offline
Mortal

Joined: Wed Mar 25, 2009 10:11 am
Posts: 941
I'd like to be able to type "skill dodge", and have "Dodge <superb>" be the only thing to show up. It's not a very important thing, but if it's an easy code, it would save me pi secconds looking for dodge when I see I got better at it, and I want to see if I mastered it yet. (or whatever skill was improved)


Top
 Profile  
Reply with quote  
 Post subject: Re: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 7:19 am 
Offline
Mortal

Joined: Fri Jul 09, 2004 8:43 am
Posts: 5614
Location: Columbia, South Carolina
SK Character: Pilnor, Surrit, Berr, Rall
You so lazy! Just look at yo skills!


Top
 Profile  
Reply with quote  
 Post subject: Re: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 7:55 am 
Offline
Mortal Philanthropist

Joined: Mon Jun 21, 2004 12:58 pm
Posts: 3632
Location: Spokane, WA
Are you using zmud or cmud?


Top
 Profile  
Reply with quote  
 Post subject: Re: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 9:09 am 
Offline
Mortal

Joined: Wed Mar 25, 2009 10:11 am
Posts: 941
Muktar wrote:
Are you using zmud or cmud?

Nope :( SimpleMU... it's pretty easy, but I keep finding out there's a bunch of things other clients can do that I can't. (or if I can, I've got no idea how)


Top
 Profile  
Reply with quote  
 Post subject: Re: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 9:17 am 
Offline
Mortal

Joined: Thu Aug 31, 2006 1:50 pm
Posts: 3502
Location: Canada
SK Character: Karsh
laeZ1 wrote:
Muktar wrote:
Are you using zmud or cmud?

Nope :( SimpleMU... it's pretty easy, but I keep finding out there's a bunch of things other clients can do that I can't. (or if I can, I've got no idea how)


Most of what other clients do that simplemu can't, at least the free download of it, can be accomplished with the paid license, but simplemu still has limitations other clients don't.


Top
 Profile  
Reply with quote  
 Post subject: Re: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 10:58 am 
Offline
Mortal

Joined: Mon Jun 11, 2012 9:57 pm
Posts: 40
This really belongs in the Clients topic, but...

I used to use SimpleMU, but now use MUSHClient. Much more versatile. And though I never thought to do this, as I was reading this thread a scripts/plugin idea popped into my head. Not sure if it is transferrable to cmud/zmud or not (never used those 2)

You could write a plugin to use a trigger on the "better" lines, with the skill in question going into a wildcard. The trigger would go to a script function to enable and alter the matchline of a one-shot trigger. That new matchline would use the skill/spell name in the wildcard (from the first trigger), and highlight that skill the next time you type "skills" (or "spells").

the options for the first trigger would be something like (and I'm forgetting the exact wording for the match, and actually you would need two, both calling the get_match function... one for success better, one for failed attempt better)..

enabled="y"
match="You have improved in *!"
script="get_match"

In Lua, the script funtion would look something like...(assuming the second trigger's "name" is "hilite_skill" and it has "one_shot" option set to "yes", and a default "enabled" set to "no", and "reg_exp" set to "yes", and of course whatever color change, underline, etc)

function get_match(name, line, wildcards)
local newmatch = wildcards[1].."\s+\([a-z]+\)"
SetTriggerOption("hilite_skill","enabled","y")
SetTriggerOption("hilite_skill","match", newmatch)
end


Top
 Profile  
Reply with quote  
 Post subject: Re: Would this be tough to impliment?
PostPosted: Tue Aug 14, 2012 12:23 pm 
Offline
Mortal

Joined: Wed Mar 25, 2009 10:11 am
Posts: 941
Dragonite2012 wrote:
This really belongs in the Clients topic, but...

I used to use SimpleMU, but now use MUSHClient. Much more versatile. And though I never thought to do this, as I was reading this thread a scripts/plugin idea popped into my head. Not sure if it is transferrable to cmud/zmud or not (never used those 2)

You could write a plugin to use a trigger on the "better" lines, with the skill in question going into a

I understood this part :D
Dragonite2012 wrote:
wildcard. The trigger would go to a script function to enable and alter the matchline of a one-shot trigger. That new matchline would use the skill/spell name in the wildcard (from the first trigger), and highlight that skill the next time you type "skills" (or "spells").

the options for the first trigger would be something like (and I'm forgetting the exact wording for the match, and actually you would need two, both calling the get_match function... one for success better, one for failed attempt better)..

enabled="y"
match="You have improved in *!"
script="get_match"

In Lua, the script funtion would look something like...(assuming the second trigger's "name" is "hilite_skill" and it has "one_shot" option set to "yes", and a default "enabled" set to "no", and "reg_exp" set to "yes", and of course whatever color change, underline, etc)

function get_match(name, line, wildcards)
local newmatch = wildcards[1].."\s+\([a-z]+\)"
SetTriggerOption("hilite_skill","enabled","y")
SetTriggerOption("hilite_skill","match", newmatch)
end

:-?
So... what you're basically saying... is that if I get my friend who's good with computers to come over under the false guise of wanting to play MtG, and show him what you just posted, he would know what that meant, how to do it, and whenever I would get better in a skill, song, or spell, the next time I'd check to see how good I've gotten, the skill, song, or spell in question would be highlighted?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 73 guests


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

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group