|
Mutt Newbie
Joined: 05 Apr 2003 Posts: 4
|
Posted: Fri Apr 18, 2003 8:48 am
triggers, variables, and the '@' symbol |
I'm trying to write a trigger that stores 'whatever' into a variable.
ex: #TRIG {^~[~ &blah1~ ~]} ...
the problem is, sometimes blah1 needs to hold the value of "@".
ex: [ @ ]
pseudo ascii graphic issue, I suppose.
if I put the tilde in front of the "&blah1" part, it of courss breaks...
Any suggstions? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Apr 18, 2003 11:32 am |
In order to capture special characters like @#!& you must either use a range wildcard or %* wildcard. The %* wildcard is highly hazardous, in fact capturing special characters in general is highly hazardous. I would suggest you post the details of the line and what exactly you want done with it so we can help you right the safest script possible.
|
|
|
|
Mutt Newbie
Joined: 05 Apr 2003 Posts: 4
|
Posted: Sat Apr 19, 2003 7:06 am |
basically it's an in-game poker slot machine deal. Basically I want to code my own twisted logic into a condition so that given any cards that pop up, the script will make the same choice I would. The cards are " 2-10, J, Q, K, A " (obviously), while the suits are a little more difficult at " *, V, ^, @ ".
Need more info? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Apr 20, 2003 3:37 am |
You mentioned that each card has a value and suit. How exactly does it look, and what do multiple cards look like (assuming the player is dealt a fixed set of cards that stays constant throughout the hand, like most electronic poker games and video poker machines)?
If each card is made up of two bracketed examples like the one you gave in the original post, you can do something like this:
#trigger {^~[ [1234567890JQKA] ~]~[ [~*V~^~@] ~]} {}
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|
|
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 You cannot vote in polls in this forum
|
|