Not what I had in mind.
Let me use Cmud as an example. In Cmud there are wildcards that are used in pattern matching.
IE:
%w any one word
%s any amount of white spaces
%p any punctuation
%d any single whole number
These can be put in brackets to further make them useful.
[%w%s%p] would match any series words spaces and punctuation.
This is extremely useful. At least for me it is.
As far as I can see in the documentation there are no wildcards within SF.
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Re: Pattern matching in Stormfront please.. on 04/05/2007 11:10 AM CDT
Re: Pattern matching in Stormfront please.. on 04/05/2007 11:39 AM CDT
>>As far as I can see in the documentation there are no wildcards within SF.
That is correct. Those of us who use StormFront scripting engine simply write more specific scripts, use more user-defined variables, write up clever workarounds when we can, and accept that SF scripts cannot do certain things when all of the above have failed.
X
That is correct. Those of us who use StormFront scripting engine simply write more specific scripts, use more user-defined variables, write up clever workarounds when we can, and accept that SF scripts cannot do certain things when all of the above have failed.
X
Re: Pattern matching in Stormfront please.. on 04/05/2007 12:52 PM CDT
>>That is correct. Those of us who use StormFront scripting engine simply write more specific scripts, use more user-defined variables, write up clever workarounds when we can, and accept that SF scripts cannot do certain things when all of the above have failed.
Admitted. I was purely asking if it would be possible. I would email the proposition in but I know not what the address is.
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Admitted. I was purely asking if it would be possible. I would email the proposition in but I know not what the address is.
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Re: Pattern matching in Stormfront please.. on 04/05/2007 01:53 PM CDT
>> %w any one word
MATCHRE /\w*?/
%s any amount of white spaces
MATCHRE /\s*/
%p any punctuation
MATCHRE /[.,<>\/\?;:'"\[{\]}\\\|\-_+=`~!@#$%^&*\(\)]/
%d any single whole number
MATCHRE /\d*/
for more info, see: http://msdn.microsoft.com/library/en-us/script56/html/2380d458-3366-402b-996c-9363906a7353.asp
MATCHRE /\w*?/
%s any amount of white spaces
MATCHRE /\s*/
%p any punctuation
MATCHRE /[.,<>\/\?;:'"\[{\]}\\\|\-_+=`~!@#$%^&*\(\)]/
%d any single whole number
MATCHRE /\d*/
for more info, see: http://msdn.microsoft.com/library/en-us/script56/html/2380d458-3366-402b-996c-9363906a7353.asp
Re: Pattern matching in Stormfront please.. on 04/05/2007 02:06 PM CDT
Re: Pattern matching in Stormfront please.. on 04/05/2007 02:25 PM CDT
Re: Pattern matching in Stormfront please.. on 04/05/2007 05:13 PM CDT
Re: Pattern matching in Stormfront please.. on 04/05/2007 05:33 PM CDT
Re: Pattern matching in Stormfront please.. on 04/05/2007 08:36 PM CDT
Re: Pattern matching in Stormfront please.. on 04/06/2007 02:53 AM CDT
>>And StormFront's uses Boost's.
Ok, I am checking out http://www.boost.org at the moment. Should I be paying attention to Perl, extended, or basic? This has me totaly confused.
I always assumed (I know.. that word) that that Mathre was for (x|y) matching.
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Ok, I am checking out http://www.boost.org at the moment. Should I be paying attention to Perl, extended, or basic? This has me totaly confused.
I always assumed (I know.. that word) that that Mathre was for (x|y) matching.
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Re: Pattern matching in Stormfront please.. on 04/06/2007 06:19 AM CDT
<for more info, see: http://msdn.microsoft.com/library/en-us/script56/html/2380d458-3366-402b-996c-9363906a7353.asp>
incorrect. people always seem to think microsoft invented everything... truth is, they STOLE everything.
for further information see http://www.perl.org/ and look up regular espressions.
Druid Wheller Herbmaster, Con Artist of Elanthia
http://robertdell.dyndns.org/DR_Scripts/
click YASSE.dmg
http://sourceforge.net/projects/yasse/
P.S. no good deed goes un-punished!
When in doubt, reinvent the wheel!
incorrect. people always seem to think microsoft invented everything... truth is, they STOLE everything.
for further information see http://www.perl.org/ and look up regular espressions.
Druid Wheller Herbmaster, Con Artist of Elanthia
http://robertdell.dyndns.org/DR_Scripts/
click YASSE.dmg
http://sourceforge.net/projects/yasse/
P.S. no good deed goes un-punished!
When in doubt, reinvent the wheel!
Re: Pattern matching in Stormfront please.. on 04/06/2007 06:47 PM CDT
<<Ok, I am checking out http://www.boost.org at the moment. Should I be paying attention to Perl, extended, or basic? This has me totaly confused.>>
I'm not sure, Bryan wrote that part. <G>
Myke
I'm not sure, Bryan wrote that part. <G>
Myke
Re: Pattern matching in Stormfront please.. on 04/06/2007 07:16 PM CDT
Thanks for the response Myke.
Reading that page and trying to comprehend it right now makes me feel like a caveman trying to take in and understand Latin.
Guess I should try it after some sleep and a cup of coffee? ;)
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reading that page and trying to comprehend it right now makes me feel like a caveman trying to take in and understand Latin.
Guess I should try it after some sleep and a cup of coffee? ;)
Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Re: Pattern matching in Stormfront please.. on 04/06/2007 11:14 PM CDT
For the record I was not pointing at the Microsoft page for RegEx "see more" because I thought they invented it, or thought they had the best docs (in fact I know both to be false on this subject).
I was pointing to it, simply because thats what Stormfront's help docs point at. (I was not sure at the time that Stormfront used Boost, so did not even bother to look into it there).
~Callek
I was pointing to it, simply because thats what Stormfront's help docs point at. (I was not sure at the time that Stormfront used Boost, so did not even bother to look into it there).
~Callek
Re: Pattern matching in Stormfront please.. on 04/12/2007 10:08 PM CDT
Some example of re's I use...
Matchre WHATEVERWATI /Sorry,|\.*wait/
The | <"pipe" charecter equates to "or"
The \ tells the engine the next charecter has special and or unique meaning in the case above \. means look for a period.
The * means look for one or multiple of the preceeding charecter, so \.* is look for any number of periods.
I like to use modules in scripts so I don't have to repeat code. Here's a section that utilizes regular expression matching to minimize lines in my code.
CHECKLEVELW:
Pause 1
CHECKLEVEL:
Matchre %EXPLEARNING /%\s(clear|learning|thoughtful|pondering|concentrating|muddled|very\smuddled|perplexing|perplexed|bewildering|bewildered)/i
Matchre %EXPMINDLOCK /%\s(mind\slock|dazed)/i
Matchre CHECKLEVELW /Sorry,|\.*wait/
Put exp %EXP2CHECK
MatchWait
#USAGE
CHECKHEEXP:
SetVariable EXPLEARNING GETHE
SetVariable EXPMINDLOCK GETME
SetVariable EXP2CHECK heavy edged
GoTo CHECKLEVEL
In essense the first match catches anything bur mind lock and dazed. The second send you to where you want to go when mind locked or dazed.
The \s = "any white space" probably redundent or uneccesary and it's what I started with long ago...
Following the USAGE guid allows you to call this from anywhere in your script. Yes it's limited to the defined parameters. You could use variables to define the parameters.
IE: Matchre %EXPLEARNING %LEARNINGPARAM
Add SetVariable LEARNINGPARAM /%\s(clear|learning|thoughtful|pondering|concentrating|muddled|very\smuddled|perplexing|perplexed/i to CHECKHEEXP.
Want to ensure you hands are empty?
EMPTYHANDSW:
Pause 1
EMPTYHANDS:
#ECHO >>>> EMPTYHANDS: <<<<
Match SHEATHINITW2HE %W2HE
Match SHEATHINITWHE %WHE
Match SHEATHINITWME %WME
Match SHEATHINITWLE %WLE
Match SHEATHINITW2HB %W2HB
Match SHEATHINITWHB %WHB
Match SHEATHINITWMB %WMB
Match SHEATHINITWLB %WLB
Match SHEATHINITWLT %WLT
Match SHEATHINITWHT %WHT
Match SHEATHINITWSS %WSS
Match SHEATHINITWQS %WQS
Match SHEATHINITWPIKE %WPIKE
Match SHEATHINITWHALBERD %WHALBERD
Match SHEATHINITWLBOW %WLBOW
Match SHEATHINITWSSLING %WSSLING
Match SHEATHINITSKINKNIFE %SKINKNIFE
Matchre STOWR /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your right hand/i
Matchre STOWL /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your left hand/i
Match %GOTOPOSTHANDCLEANUP glance down at your empty hands.
Matchre EMPTYHANDSW /Sorry,|\.*wait/
Put glance
MatchWait
#USAGE
EMPTYHANDS2SKIN:
SetVariable GOTOPOSTHANDCLEANUP SKINIT
GoTo EMPTYHANDS
IMPORTANT to note when useing Matchre you must use the ending % on a variable.
IE:
Matchre STOWR /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your right hand/i
Verses
Match SHEATHINITWLBOW %WLBOW
Anyway hope that helps in some way....
"Don't go to far, don't stay to long."
Matchre WHATEVERWATI /Sorry,|\.*wait/
The | <"pipe" charecter equates to "or"
The \ tells the engine the next charecter has special and or unique meaning in the case above \. means look for a period.
The * means look for one or multiple of the preceeding charecter, so \.* is look for any number of periods.
I like to use modules in scripts so I don't have to repeat code. Here's a section that utilizes regular expression matching to minimize lines in my code.
CHECKLEVELW:
Pause 1
CHECKLEVEL:
Matchre %EXPLEARNING /%\s(clear|learning|thoughtful|pondering|concentrating|muddled|very\smuddled|perplexing|perplexed|bewildering|bewildered)/i
Matchre %EXPMINDLOCK /%\s(mind\slock|dazed)/i
Matchre CHECKLEVELW /Sorry,|\.*wait/
Put exp %EXP2CHECK
MatchWait
#USAGE
CHECKHEEXP:
SetVariable EXPLEARNING GETHE
SetVariable EXPMINDLOCK GETME
SetVariable EXP2CHECK heavy edged
GoTo CHECKLEVEL
In essense the first match catches anything bur mind lock and dazed. The second send you to where you want to go when mind locked or dazed.
The \s = "any white space" probably redundent or uneccesary and it's what I started with long ago...
Following the USAGE guid allows you to call this from anywhere in your script. Yes it's limited to the defined parameters. You could use variables to define the parameters.
IE: Matchre %EXPLEARNING %LEARNINGPARAM
Add SetVariable LEARNINGPARAM /%\s(clear|learning|thoughtful|pondering|concentrating|muddled|very\smuddled|perplexing|perplexed/i to CHECKHEEXP.
Want to ensure you hands are empty?
EMPTYHANDSW:
Pause 1
EMPTYHANDS:
#ECHO >>>> EMPTYHANDS: <<<<
Match SHEATHINITW2HE %W2HE
Match SHEATHINITWHE %WHE
Match SHEATHINITWME %WME
Match SHEATHINITWLE %WLE
Match SHEATHINITW2HB %W2HB
Match SHEATHINITWHB %WHB
Match SHEATHINITWMB %WMB
Match SHEATHINITWLB %WLB
Match SHEATHINITWLT %WLT
Match SHEATHINITWHT %WHT
Match SHEATHINITWSS %WSS
Match SHEATHINITWQS %WQS
Match SHEATHINITWPIKE %WPIKE
Match SHEATHINITWHALBERD %WHALBERD
Match SHEATHINITWLBOW %WLBOW
Match SHEATHINITWSSLING %WSSLING
Match SHEATHINITSKINKNIFE %SKINKNIFE
Matchre STOWR /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your right hand/i
Matchre STOWL /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your left hand/i
Match %GOTOPOSTHANDCLEANUP glance down at your empty hands.
Matchre EMPTYHANDSW /Sorry,|\.*wait/
Put glance
MatchWait
#USAGE
EMPTYHANDS2SKIN:
SetVariable GOTOPOSTHANDCLEANUP SKINIT
GoTo EMPTYHANDS
IMPORTANT to note when useing Matchre you must use the ending % on a variable.
IE:
Matchre STOWR /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your right hand/i
Verses
Match SHEATHINITWLBOW %WLBOW
Anyway hope that helps in some way....
"Don't go to far, don't stay to long."
New Beta Version of Stormfront on 01/22/2008 05:24 PM CST
Re: New Beta Version of Stormfront on 01/22/2008 05:31 PM CST
Re: New Beta Version of Stormfront on 01/22/2008 05:45 PM CST
Re: New Beta Version of Stormfront on 01/22/2008 07:34 PM CST
Not only did I get the same error message, but I've not been able to go back to the old version of Stormfront. I've deleted, reinstalled, but each time I log in, I don't get a complete connection. No commands are accepted. After about 20 seconds, I'm logged out. I'd really not recommend installing the beta version at this time.
Re: New Beta Version of Stormfront on 01/22/2008 07:35 PM CST
Re: New Beta Version of Stormfront on 01/22/2008 07:47 PM CST
Re: New Beta Version of Stormfront on 01/23/2008 06:59 AM CST
I loaded this version, today. When I logged in I noticed two things:
- I was pulled out of hiding.
- There was no experience drain.
Useff
Macfrae frowns at you as he says, "BAH! You already know that enchante. Why make me repeat things for you when you already know the answer? You owe me a beer for this!"
- I was pulled out of hiding.
- There was no experience drain.
Useff
Macfrae frowns at you as he says, "BAH! You already know that enchante. Why make me repeat things for you when you already know the answer? You owe me a beer for this!"
Re: New Beta Version of Stormfront on 01/23/2008 09:22 AM CST
>> - I was pulled out of hiding.
>> - There was no experience drain.
Which reminds me--the current version of Stormfront no longer saves my window placement for any of my characters, which means I have to import my settings every time I log in. Also, importing brings you out of hiding.
~player of Gulphphunger
>> - There was no experience drain.
Which reminds me--the current version of Stormfront no longer saves my window placement for any of my characters, which means I have to import my settings every time I log in. Also, importing brings you out of hiding.
~player of Gulphphunger
Re: New Beta Version of Stormfront on 01/24/2008 01:34 AM CST
Re: New Beta Version of Stormfront on 01/24/2008 01:45 AM CST
Re: New Beta Version of Stormfront on 01/24/2008 09:17 AM CST
Re: New Beta Version of Stormfront on 01/24/2008 01:22 PM CST
Re: New Beta Version of Stormfront on 01/29/2008 10:11 PM CST
Re: New Beta Version of Stormfront on 01/30/2008 08:35 AM CST
<<was there vertanotes somewheres?>>
http://www.play.net/dr/play/sf/notes.asp
<<Did we get nifty new tools?>>
Mainly just bug fixes.
<<Did the need to nest varibles go away?>>
There were no changes to scripting.
Myke
http://www.play.net/dr/play/sf/notes.asp
<<Did we get nifty new tools?>>
Mainly just bug fixes.
<<Did the need to nest varibles go away?>>
There were no changes to scripting.
Myke
Re: New Beta Version of Stormfront on 01/31/2008 06:00 AM CST
I am not sure if this is a SF issue or not but after upgrading to the new beta version, I can no longer look in my bamboo tube. When I look IN the tube I get the description of the tube as if I had just looked AT it. I can rumage the tube though and see the items in it.
~Eoworfinia~
Dartenian fades into view.
A horde of Lawrence Welk fans decend on the area.
Dartenian whimpers softly.
~Eoworfinia~
Dartenian fades into view.
A horde of Lawrence Welk fans decend on the area.
Dartenian whimpers softly.
Re: New Beta Version of Stormfront on 01/31/2008 08:19 AM CST
<<I am not sure if this is a SF issue or not but after upgrading to the new beta version, I can no longer look in my bamboo tube. When I look IN the tube I get the description of the tube as if I had just looked AT it. I can rumage the tube though and see the items in it.>>
I doubt it but, you can try with the Wizard and see if its the same.
Myke
I doubt it but, you can try with the Wizard and see if its the same.
Myke
Re: New Beta Version of Stormfront on 02/01/2008 04:36 PM CST
Re: New Beta Version of Stormfront on 02/04/2008 12:29 AM CST
>There were no changes to scripting.
Darn. Well can it get put in a random number on the "git 'round to it" list?
namely something like a If_null command defaulting to literal execution.
example var two is currently null in the phrase below
match %next%two data response
This would default to the variable %next, ignoring the %two since it's empty.
Maybe also make it buelean capable, ie %next%c
>>--Shnurui>
Darn. Well can it get put in a random number on the "git 'round to it" list?
namely something like a If_null command defaulting to literal execution.
example var two is currently null in the phrase below
match %next%two data response
This would default to the variable %next, ignoring the %two since it's empty.
Maybe also make it buelean capable, ie %next%c
>>--Shnurui>
Re: New Beta Version of Stormfront on 02/04/2008 03:41 AM CST
If you're not willing to go the Genie route there is some new FE out called Warlock, it looked alright.
- Maje
Abstract ideas and religious associations based on the elements is something those skirt-wearing Clerics and fruity Bards are more likely to play with. Real wizards play with the primal stuff. - Armifer
- Maje
Abstract ideas and religious associations based on the elements is something those skirt-wearing Clerics and fruity Bards are more likely to play with. Real wizards play with the primal stuff. - Armifer
Re: New Beta Version of Stormfront on 02/04/2008 06:01 PM CST
Re: New Beta Version of Stormfront on 02/06/2008 09:52 AM CST
Re: New Beta Version of Stormfront on 02/06/2008 02:49 PM CST
Don't forget ADDTOIGNORESTRINGS and DELETEFROMIGNORESTRINGS!
Also, and this is probably asking a lot, but what about a MATCHELSE<#> command, where the matchwait will go to the matchelse label after # seconds of not matching any of the other matches. So an example would be:
match labelA You get ye flask
match labelB You can't get ye flask
matchelse5 labelC
put get ye flask
matchwait
This would tell the script that if the game output doesn't match to labelA or labelB within 5 seconds of inputting the command, to default to labelC. I know it sounds way out there, but there are countless times where I wish I could have something like this, especially when dealing with anything that may (or may not) have a delayed reaction in game (shockwave trap?).
Aveda's Field Guide- http://dr.aveda.googlepages.com
Reckus 4.02 is out. More noob-friendly!
Also, and this is probably asking a lot, but what about a MATCHELSE<#> command, where the matchwait will go to the matchelse label after # seconds of not matching any of the other matches. So an example would be:
match labelA You get ye flask
match labelB You can't get ye flask
matchelse5 labelC
put get ye flask
matchwait
This would tell the script that if the game output doesn't match to labelA or labelB within 5 seconds of inputting the command, to default to labelC. I know it sounds way out there, but there are countless times where I wish I could have something like this, especially when dealing with anything that may (or may not) have a delayed reaction in game (shockwave trap?).
Aveda's Field Guide- http://dr.aveda.googlepages.com
Reckus 4.02 is out. More noob-friendly!
Re: New Beta Version of Stormfront on 02/06/2008 02:52 PM CST
Re: New Beta Version of Stormfront on 02/06/2008 03:04 PM CST
Re: New Beta Version of Stormfront on 02/06/2008 03:46 PM CST
>I'm having a hard time finding it: did anyone say what the upgrades were that made changing to the new SF a good idea?
http://www.play.net/forums/messages.asp?forum=90&category=3&topic=22&message=35
Sounds to me like there's absolutely no reason to upgrade if you aren't downloading/using maps.
But I'm not an expert.
~ Sage Kougen Aensworth, Star Shaper of the Compact
Ruea says, "I swear, I'm forsaking Damaris and building an altar to you."
http://www.play.net/forums/messages.asp?forum=90&category=3&topic=22&message=35
Sounds to me like there's absolutely no reason to upgrade if you aren't downloading/using maps.
But I'm not an expert.
~ Sage Kougen Aensworth, Star Shaper of the Compact
Ruea says, "I swear, I'm forsaking Damaris and building an altar to you."