Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jasonjacob
Newbie


Joined: 07 May 2019
Posts: 2

PostPosted: Fri May 10, 2019 12:40 pm   

Capturing randomness!!!
 
PostPosted: Mon Apr 16, 2018 7:35 pm

Capturing randomness

I never did get this fixed but i have a similar issue but a bit more complicated only due to the randomness of what is missing and what is showing.
I'll put a bit of it up here:https://discord.software/ FetLife iTunes

Code:
O:10 PE:128 HS:116


I tried this:

Code:
[~[%s(*)%s~]~]

which will capture, but for the life of me i can't get a working script for the random portions of this.


any ideas would be appreciated, thanks


Last edited by jasonjacob on Fri May 10, 2019 7:40 pm; edited 2 times in total
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Fri May 10, 2019 2:41 pm   
 
* simply captured everything, it is very greedy, you need to make use of the other pattern matching symbols, there is a link to them all in:
#HELP #TRIGGER

#TR {O:(%d) PE:(%d) HS:(%d)} {
o=%1
pe=%2
hs=%3
}

That will capture all the relevant data, and store it in the appropriately named variables.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net