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
diehard2k0
Beginner


Joined: 17 Aug 2008
Posts: 25

PostPosted: Tue Jun 30, 2009 3:30 pm   

shorten scripts
 
Ok. First off i ain't the greatest person when it comes to making scripts, but i like having fun with them. My thing is, the scripts i write are usually long.
The one i am working on now is for 'Texas Hold 'em'. The issue i am having is it's getting hard to read the script and know where i am exactly.
Is there a way i can make a function like this shorter:
#if (%db(@{cardholdem%i}, Card1)=%db(@{cardholdem%i}, Card2))

eg.. can i predefine %db(@{cardholem%i}, Card1) so i can use something shorter?

again, i ain't the greatest person at it, but it's fun for me. If you want to see what the whole thing looks like so far, ask me and i'll post it.
Reply with quote
diehard2k0
Beginner


Joined: 17 Aug 2008
Posts: 25

PostPosted: Wed Jul 01, 2009 3:04 am   
 
Solved.
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