diehard2k0 Beginner
Joined: 17 Aug 2008 Posts: 25
|
Posted: 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. |
|