Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Thu Nov 28, 2024 7:40 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 12:04 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
only posting in gd from now - thx and have a nice day


Last edited by FinneyOwnzU on Sat Jan 31, 2015 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 5:05 pm 
Offline
Mortal

Joined: Fri Apr 17, 2009 9:50 pm
Posts: 5522
I would add a trigger to capture stance information from the status command output. Otherwise, this will only be accurate if you 'toggle' it?

For security, it may be good to add start-of-line and end-of-line characters to the trigger. It's usually just {^Your stance is now (*).$}, but it might be different in your client. Right now ">'lol. Your stance is now sexy." would screw you up.

Otherwise, nice functionality. It's good to see active development!


Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 5:15 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
only posting in gd from now - thx and have a nice day


Last edited by FinneyOwnzU on Sat Jan 31, 2015 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 5:43 pm 
Offline
Mortal

Joined: Fri Apr 17, 2009 9:50 pm
Posts: 5522
Sorry, wrong terms. I meant adding a trigger for the line:

Quote:
o Attribute points: 13 Wimpy: 0 percent Mode: Kill/defensive o


Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 6:05 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
only posting in gd from now - thx and have a nice day


Last edited by FinneyOwnzU on Sat Jan 31, 2015 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 6:23 pm 
Offline
Mortal

Joined: Fri Apr 17, 2009 9:50 pm
Posts: 5522
FinneyOwnzU wrote:
grep wrote:
Sorry, wrong terms. I meant adding a trigger for the line:

Quote:
o Attribute points: 13 Wimpy: 0 percent Mode: Kill/defensive o


Oh, right. Easy enough:

#TRIGGER {Mode: {Kill|Stun}~/(*)} {#VARIABLE stance %1}


grep wrote:
Otherwise, this will only be accurate if you 'toggle' it?


Until the variable can be populated (via score or stance input - with or without an argument), the stance on the prompt will be blank. It will look like this:

[HP:100%] [ME: 98%] [PE:100%] ()


Hmm.. does your language allow full regex?

Seems to me we'd get a big benefit out of something like:
#TRIGGER {^{o|O|0}.+Mode: {Kill|Stun}~/({defensive|neutral|aggressive}).+{o|O|0}$} {#VARIABLE stance %1}

or whatever. You get the point: making it so that players can't trigger the script with the say command.


Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 6:44 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
only posting in gd from now - thx and have a nice day


Last edited by FinneyOwnzU on Sat Jan 31, 2015 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 10:29 pm 
Offline
Mortal

Joined: Fri Apr 17, 2009 9:50 pm
Posts: 5522
I might be mistaken, but I think the triggers use the basic \1 sort of parameter in regex which just requires parentheses. Something like s/.+({foo|bar}).+/\1/' would give you "foo" or "bar," more or less.

TIMTOWTDI and all, though. It's more of an academic thing at that point. You're right about the staff, they're good at being police in the game. I never would've thought of ANSI matching, believe it or not...


Doing an ANSI match on tells and such for god-speak would be very useful. That's something I'll have to remember!


Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Mon Oct 07, 2013 11:37 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
only posting in gd from now - thx and have a nice day


Last edited by FinneyOwnzU on Sat Jan 31, 2015 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Default Prompt with Stance Information
PostPosted: Tue Oct 08, 2013 6:57 am 
Offline
Mortal

Joined: Tue May 24, 2011 5:07 pm
Posts: 499
Location: Alera
FinneyOwnzU wrote:
If you use a custom prompt, you will need to post the format and when I get time I will modify the trigger to work with it.


My prompt is pretty basic, the only addition I have to it is the time. This trigger is fantastic, thank you for working on it! If you do have time to spare for it, though, could you post how to add the time between PE and stance?

This is how my prompt appears:
[HP:100][ME:100][PE:100][9pm]

I'll be trying to figure it out myself, so if I do, I'll post it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 35 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