I'm still new to writing my own scripts but I am trying to learn the rexx language in my spare time,
I am trying to put together a script to transfer fighters between two sectors, and I'm not quite sure how to tell the script to pull the number available in the sector and what amount to leave, any help would be greatly appreciated...
Example:
You have 5,000,000 fighters available
How many fighters would you like defending this sector
your ship can support 20,000 leaving 4,980,000
I need to pull both the number available and the number I can leave behind but I 'm not sure just how to command rexx to pull both amounts any ideas or suggestions?...
If I can get this script put together and working I will be more then happy to post it to the Attac script page to share...
DO pos = 1 to length(lastline)
ch = substr(lastline, pos, 1)
if ch <> "]" || ch <> " " || ch <> "^M" then DO
if ch <> "," then int_final = int_final || ch
END
END
RETURN int_final