• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Working on StringPattern - System any suggestions for features?

Status
Not open for further replies.
Level 16
Joined
Feb 22, 2006
Messages
960
So I'm working on a StringPattern-System and I need some suggestions what you would like to see in this system. Actually i have following features:

JASS:
//For Players i have:
%p00-%p11
//For any playername
%p
//For Any character
(.)
//For only digits
%d
//For only words (including digits but no punctuation)
%w
//For only punctuation
%s


Then opperators:
+
&&
||
* <= address operator 

For charactarblock seperation
(
)

//If you create a StringPattern it'll look like this
StringPattern pattern = StringPattern.create("send %p (%d*5)")

//You could check if a playermessage matches this:
playerMsg = "send xD.Schurke 10000"
if pattern.matches(playerMsg) then
...
endif
//this would match the pattern 'cause xD.Schurke is one of the players and the "number" is 5-digit

then there is the question if there is rly the need for such a system :p
 
Level 16
Joined
Feb 22, 2006
Messages
960
it's not that similar I would say.
My idea was to create a system which could be used by the user to create certain patterns, which could be used in chat systems or for commandos etc.

The idea is not to give the player "messages" but check their messages if they fit a "pattern"
 
Status
Not open for further replies.
Top