Re: Pattern matching in Stormfront please.. on 04/05/2007 11:10 AM CDT
Links-arrows 166
Reply Reply
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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 11:39 AM CDT
Links-arrows 167
Reply Reply
>>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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 12:52 PM CDT
Links-arrows 168
Reply Reply
>>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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 01:53 PM CDT
Links-arrows 169
Reply Reply
>> %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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 02:06 PM CDT
Links-arrows 170
Reply Reply
Woody, these are applicable in StormFront?




Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 02:25 PM CDT
Links-arrows 172
Reply Reply
I'm not woody, but as far as I know, Stormfront has the ability to utilize Regular Expressions with the matchre and waitforre commands. I've used them minimally, but I'm fairly certainly that SF has a full access to all of the normal RegEx stuff.

-Durnil
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 05:13 PM CDT
Links-arrows 173
Reply Reply
Yes, Both Stormfront and Escape have Regular Expression Matching capability, hence why my first reply was "MATCHRE"

Note, though, that the Escape and Stormfront RE syntax is slightly different, since Escape's is based in Javascript Syntax.
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 05:33 PM CDT
Links-arrows 174
Reply Reply
<<Note, though, that the Escape and Stormfront RE syntax is slightly different, since Escape's is based in Javascript Syntax.>>

And StormFront's uses Boost's.


Myke
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/05/2007 08:36 PM CDT
Links-arrows 175
Reply Reply
Myke...*slips you a 20* give storm front triggers please:)


Farewell, remorse: all good to me is lost; Evil, be thou my good.
~Paradise Lost (bk. IX, l. 171)
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/06/2007 02:53 AM CDT
Links-arrows 176
Reply Reply
>>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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/06/2007 06:19 AM CDT
Links-arrows 177
Reply Reply
<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!
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/06/2007 06:47 PM CDT
Links-arrows 178
Reply Reply
<<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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/06/2007 07:16 PM CDT
Links-arrows 179
Reply Reply
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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/06/2007 11:14 PM CDT
Links-arrows 180
Reply Reply
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
Reply Reply
Re: Pattern matching in Stormfront please.. on 04/12/2007 10:08 PM CDT
Links-arrows 181
Reply Reply
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."





Reply Reply
New Beta Version of Stormfront on 01/22/2008 05:24 PM CST
Links-arrows 182
Reply Reply
Can someone tell me what is different about the new stormfront Beta Version or point me to where it says what is different?

Thanks
Reply Reply
Re: New Beta Version of Stormfront on 01/22/2008 05:31 PM CST
Links-arrows 183
Reply Reply
Installed on a 2.8ghz win xp/nt system with 1 gig ram nvideo 64xx with 356 meg video. Using 2.28 thurough DSL Cellnet.

Get this error when launching from SGE

Error Code 14001
"C:\progra~1\simu\stormf~stormfront.exe" /GDR/hdr.simutronics.net/P11024/(entry code)

>>--Shnurui>
Reply Reply
Re: New Beta Version of Stormfront on 01/22/2008 05:45 PM CST
Links-arrows 184
Reply Reply
2.1ghz XP system with 1gb ram. Getting the same error code 14001.



Putting the Romance back in Necromancer.

Necromancy: Because every man lives, not every man really dies.
Reply Reply
Re: New Beta Version of Stormfront on 01/22/2008 07:34 PM CST
Links-arrows 185
Reply Reply
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.
Reply Reply
Re: New Beta Version of Stormfront on 01/22/2008 07:35 PM CST
Links-arrows 186
Reply Reply
getting the same error as well. winxp sp2. amd 3500+ 2gb ram, nforce3 chipset. shuttle sn95g v3 motherboard, BFG mx4000 video card.

tried SGE and the website, same result
Reply Reply
Re: New Beta Version of Stormfront on 01/22/2008 07:47 PM CST
Links-arrows 187
Reply Reply
Same error. Win XP, 1 GHz ram, cable ethernet on a home network, mismatched socks.

~player of Gulphphunger
Reply Reply
Re: New Beta Version of Stormfront on 01/23/2008 06:59 AM CST
Links-arrows 188
Reply Reply
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!"
Reply Reply
Re: New Beta Version of Stormfront on 01/23/2008 09:22 AM CST
Links-arrows 189
Reply Reply
>> - 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
Reply Reply
Re: New Beta Version of Stormfront on 01/24/2008 01:34 AM CST
Links-arrows 190
Reply Reply
>>Error Code 14001

Me too. XP sp2 AMD 3600+, X800 pro video. 1 gig ram. Roadrunner cable modem.




--Player of many, master of none--
Reply Reply
Re: New Beta Version of Stormfront on 01/24/2008 01:45 AM CST
Links-arrows 191
Reply Reply
The new beta version seems to fix this.


- Player of Foresee

"Since your character is a unique snowflake, I will not attempt to create a measure for his own, personal angst." - DR-Armifer
Reply Reply
Re: New Beta Version of Stormfront on 01/24/2008 09:17 AM CST
Links-arrows 192
Reply Reply
>>Error Code 14001<<

I got this same error code too when I installed it yesterday.

_____________________________________
Gnomes Rule!
Reply Reply
Re: New Beta Version of Stormfront on 01/24/2008 01:22 PM CST
Links-arrows 193
Reply Reply
<<I got this same error code too when I installed it yesterday.>>

Its fixed in the current beta version.


Myke
Reply Reply
Re: New Beta Version of Stormfront on 01/29/2008 10:11 PM CST
Links-arrows 194
Reply Reply
was there vertanotes somewheres?

Did we get nifty new tools?

Did the need to nest varibles go away?
Reply Reply
Re: New Beta Version of Stormfront on 01/30/2008 08:35 AM CST
Links-arrows 195
Reply Reply
<<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
Reply Reply
Re: New Beta Version of Stormfront on 01/31/2008 06:00 AM CST
Links-arrows 196
Reply Reply
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.
Reply Reply
Re: New Beta Version of Stormfront on 01/31/2008 08:19 AM CST
Links-arrows 197
Reply Reply
<<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
Reply Reply
Re: New Beta Version of Stormfront on 02/01/2008 04:36 PM CST
Links-arrows 198
Reply Reply
>I doubt it but, you can try with the Wizard and see if its the same.

And you would be correct. Same issue with the Wizard. So, nevermind!


~Eoworfinia~
Dartenian fades into view.
A horde of Lawrence Welk fans decend on the area.
Dartenian whimpers softly.
Reply Reply
Re: New Beta Version of Stormfront on 02/04/2008 12:29 AM CST
Links-arrows 199
Reply Reply
>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>
Reply Reply
Re: New Beta Version of Stormfront on 02/04/2008 03:41 AM CST
Links-arrows 200
Reply Reply
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
Reply Reply
Re: New Beta Version of Stormfront on 02/04/2008 06:01 PM CST
Links-arrows 201
Reply Reply
I'd much rather go the route of the tool I paid for already, but the timer is still screwy and I can't afford the other format (Z- C-)

>>--Shnurui>
Reply Reply
Re: New Beta Version of Stormfront on 02/06/2008 09:52 AM CST
Links-arrows 202
Reply Reply
Sure, another item for the wishlist.


Myke
Reply Reply
Re: New Beta Version of Stormfront on 02/06/2008 02:49 PM CST
Links-arrows 203
Reply Reply
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!
Reply Reply
Re: New Beta Version of Stormfront on 02/06/2008 02:52 PM CST
Links-arrows 204
Reply Reply
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?



Pax


A "friend" will help you move.
A "good friend" will help you move a body.
Reply Reply
Re: New Beta Version of Stormfront on 02/06/2008 03:04 PM CST
Links-arrows 205
Reply Reply
If-then-else statements would be an incredible addition to the SF scripting engine.



Rev. Reene

You ask, "Ever eat a Halfling?"

The grumpy Shadow Servant quietly says, "I only eat what you give me, but I thought you said we weren't going to talk about that incident."
Reply Reply
Re: New Beta Version of Stormfront on 02/06/2008 03:46 PM CST
Links-arrows 206
Reply Reply
>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."
Reply Reply