Influencer for Mudlet

by Lilia

Back to Mechanic's Corner.

Unknown2012-03-23 12:38:09
You realise that you don't need to have the user check the AB, but rather GMCP can deal with all of this, right?
Fayneix2012-03-23 14:25:27
srs bzn? Okay, I need to learn acronyms. What do you mean Draylor?
Enyalida2012-03-23 15:47:06
Serious Business - it's a slang contraction, not an acronym. SeRiouS BiZNess.

He means that gmcp can output skillset data, so you don't need to use AB, though the way gmcp does the entire skillset thing is weird.
Unknown2012-03-23 17:10:54
It's just basically:

sendGMCP(])
To update the table, then the values are available in the gmcp.Char.Skills.List.list table.

Creating an alias to run:

display(gmcp.Char.Skills.List.list)
Will display the table.
Fayneix2012-03-23 17:16:29
And you say it does it automatically? <-- must learn coding.....
Enyalida2012-03-23 18:02:38
Ah, mhmm, there it is. I knew you had to call up that particular skill in GMCP, but I didn't remember how exactly it was managed.
Unknown2012-03-23 18:12:51
The easiest way to manage how it works, certainly for me is to just grab a specific skillset when needed. Alias/Trigger? up to you. You can then compare the length of table table and assuming we are looking for Praise, for example:

if #gmcp.Char.Skills.List.list >= 23 then
skills.praise = true
end


It's a never-ending playground, GMCP. :)

Edit: Forgot to mention. Either send a newline after the sendGMCP() or disable MCCP.
Lilia2012-03-23 20:19:42
Draylor, if you had bothered to actually look at my code, you would see that it does use gmcp, and much more effectively than your example. It sends the request on login, but checking the ab sends the exact same gmcp message from the server as requesting it yourself. Hence why I said you could do either after importing it. Not every time you startup. I had to listen to someone complain in the Mudlet clan about having to restart everything just so scripts would work, so I thought including a way to get started without having to relog would be a good idea.

Using the length of the table does not work for influencing, because of the special city influence abilities. If the table has 23 items in it, it is possible that you only have up to conspiracies or wheedling, and two or three city influences. If you have at least one city influence, "Special" will be included in the gmcp table, followed by the city abilities.
Fayneix2012-03-24 13:45:17
I feel like I missed something easy, but this is what happened: Downloaded, Installed, Restarted....

1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-ab influence
You have gained the following abilities in Influence:
Debating Match wits with others in a clash of egos.
Begging Panhandle for what you don't deserve.
Parley Negotiate with your enemies.
Rumours Spread the "stories" you've heard.
Teasing Point out how fat, ugly, and stupid others are.
Compliments Point out how fit, beautiful, and smart others are.
Analyze Read the expressions of another.
Flattery Dole out more praise than they deserve.
Supplication Grovel for alms.
Distrust Spread fear, uncertainty, and doubt about others.
Leadership Lead very large squads into combat.
Mockery Satirize another's inferior qualities.
AB INFLUENCE for more information on an ability.

*moves to find influence target*

Curving through the city. (road).
Throughout the location, small dancing flames flicker and spark. One or two
light fluffy clouds drift lazily through the sky. A statue of an ebony wakabi
stands here, memorializing his noble spirit. There are 15 Red Hands of the
Illuminati here. Clothed in rich scarlet and gold silks, an initiate of
meditation wanders nearby.
You see exits leading northeast, south, and northwest.
1924h, 2578m, 2756e, 10p, 7836en, 12160w ex-inf initiate charity
Influencing one initiate with charity
1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-
1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-ab influence
You have gained the following abilities in Influence:
Debating Match wits with others in a clash of egos.
Begging Panhandle for what you don't deserve.
Parley Negotiate with your enemies.
Rumours Spread the "stories" you've heard.
Teasing Point out how fat, ugly, and stupid others are.
Compliments Point out how fit, beautiful, and smart others are.
Analyze Read the expressions of another.
Flattery Dole out more praise than they deserve.
Supplication Grovel for alms.
Distrust Spread fear, uncertainty, and doubt about others.
Leadership Lead very large squads into combat.
Mockery Satirize another's inferior qualities.
AB INFLUENCE for more information on an ability.
1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-
The last vestiges of midnight shadows flee as Mother Night hides herself from
the luminous arrival of her shining mate as he chases her across the bowl of the
sky.
1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-inf initiate charity
Influencing one initiate with charity
A snatch of slurred lyrics and a plume of cactus weed fills the air.
1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-ab influence
You have gained the following abilities in Influence:
Debating Match wits with others in a clash of egos.
Begging Panhandle for what you don't deserve.
Parley Negotiate with your enemies.
Rumours Spread the "stories" you've heard.
Teasing Point out how fat, ugly, and stupid others are.
Compliments Point out how fit, beautiful, and smart others are.
Analyze Read the expressions of another.
Flattery Dole out more praise than they deserve.
Supplication Grovel for alms.
Distrust Spread fear, uncertainty, and doubt about others.
Leadership Lead very large squads into combat.
Mockery Satirize another's inferior qualities.
AB INFLUENCE for more information on an ability.
1924h, 2578m, 2756e, 10p, 7840en, 12160w ex-inf initiate charity
Influencing one initiate with charityinf one
Influencing one mob at a timeinf initate charity
Influencing one initate with charity

What did I do wrong? I got no influence....and please don't yell, I'm rather ditsy.
Fayneix2012-03-24 13:59:42
Disregard, my stupid self didn't have GMCP turned on *facepalm*
Lilia2012-03-26 00:28:56
Tiny update to make it not spam influence as much if you use it in an empty room.
Fayneix2012-03-26 02:55:22
In the original download?

By the way, LOVE your system :D I can do the guards now!
Lilia2012-03-26 04:27:20
Yes, the link in the first post will always contain the most recent version. Just uninstall it with the package manager, and reinstall the new version.
Fayneix2012-03-26 13:57:03
Yeah, it took me a little bit to figure out the INF STOP thing....had a long period of spam in faethorn. Do you think you could build up a possible system for Nexus?
Unknown2012-03-26 15:00:21
It's all about Mudlet these days :D
Lilia2012-03-26 19:35:58
My decision to stop using Nexus came very quickly after my decision to start coding things, so I have very little experience writing code for it. Sorry!
Fayneix2012-03-26 20:59:51
Oh, it's fine. I just have to use Nexus when not on my home comp.
Fayneix2012-03-28 01:05:06
Another problem came up...log included. Basically, instead of alternating between compliments and admiration (my two empower skills currently) it'll input both at the same time, as such. Log:

Influencing every target in the roominf nighthag empower
Influencing every nighthag in the room with empowerinfluence nighthag with compliments
You compliment a dark nighthag on her outstanding intellect and physique.
A dark nighthag nods in agreement but avoids eye contact, looking somewhat
embarrassed.
2618h, 3702m, 3698e, 10p, 11110en, 16775w x-
You have recovered equilibrium.
2618h, 3702m, 3977e, 10p, 11110en, 16780w ex-
influence nighthag with admiration
influence nighthag with compliments
You confide in a dark nighthag how much you admire her dazzling mental and
physical skills.
A dark nighthag nods in agreement but avoids eye contact, looking somewhat
embarrassed.
2618h, 3702m, 3633e, 10p, 11110en, 16775w x-
You must regain equilibrium first.
2618h, 3702m, 3633e, 10p, 11110en, 16775w x-
You have recovered equilibrium.
2618h, 3702m, 3633e, 10p, 11110en, 16780w ex-
influence nighthag with admiration
influence nighthag with compliments
You confide in a dark nighthag how much you admire her dazzling mental and
physical skills.
A dark nighthag nods in agreement but avoids eye contact, looking somewhat
embarrassed.
2618h, 3702m, 3328e, 10p, 11110en, 16775w x-
You must regain equilibrium first.
2618h, 3702m, 3328e, 10p, 11110en, 16775w x-
A large shadow flits across the edge of your vision for a bare instant,
vanishing between the trees.
2618h, 3702m, 3328e, 10p, 11110en, 16780w x-
You have recovered equilibrium.
2618h, 3702m, 3532e, 10p, 11110en, 16780w ex-
Lilia2012-03-28 06:55:06
Is it possible everything didn't get deleted? I looks like the prompt trigger is hitting twice.