www.ClassicTW.com
https://mail.black-squirrel.com/

zoc script questions from newbie
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21168
Page 1 of 1

Author:  otacon4wvu [ Mon Nov 10, 2008 2:16 pm ]
Post subject:  zoc script questions from newbie

I was wondering if anyone could help me out with a script that I was trying to make.
The script is supose to make a certain type of planet and then quit, but I was testing it out
with zoc beeps before I did anything else. I can't even get this to work, it always seems to hang up
on the ans=zocwaitux line....can anyone tell me what I'm doing wrong below?
/* REXX (CREATED BY ZOC LEARN MODE) */

call zoctimeout 60

call zocsynctime 250

do 1
call zocsend "uy.^Mc"
ans=zocwaitux("Class M, Earth Type|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class A-FUI, Halo Planet")

select

when ans=0 then call zocbeep 1
when ans=1 then call zocbeep 2
when ans=2 then call zocbeep 3
when ans=3 then call zocbeep 4
when ans=4 then call zocbeep 5
when ans=5 then call zocbeep 6
when ans=6 then call zocbeep 7
when ans=7 then call zocbeep 8
end /* select*/
end /*do*/

I keep getting this error message:
9 +++ ans=zocwaitux("Class M, Earth Type|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class A-FUI, Halo Planet")
Error 43 on line 9 of G:\Program Files\ZOC\script\Halo Maker.zrx: Routine not found

I am clueless when it comes to trying to fix this....not really sure what to do. Any help would be appreciated.

thanks, otacon

Author:  mob [ Mon Nov 10, 2008 2:18 pm ]
Post subject:  Re: zoc script questions from newbie

Do you use TWX at all?

Author:  otacon4wvu [ Mon Nov 10, 2008 2:22 pm ]
Post subject:  Re: zoc script questions from newbie

yes, I do.

Author:  mob [ Mon Nov 10, 2008 2:27 pm ]
Post subject:  Re: zoc script questions from newbie

There are some really great TWX scripts that does exactly what you are looking for. Grimy Trader's has some of those, but currently down. Maybe someone will upload to NavHaz. Keep checking thread for an answer to your question so you learn.

Author:  Scrat [ Mon Nov 10, 2008 2:39 pm ]
Post subject:  Re: zoc script questions from newbie

otacon4wvu wrote:
9 +++ ans=zocwaitux("Class M, Earth Type|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class A-FUI, Halo Planet")
Error 43 on line 9 of G:\Program Files\ZOC\script\Halo Maker.zrx: Routine not found


You have a typo:
it should be ZocWaitMux(
instead of ZocWaitux(

Author:  otacon4wvu [ Mon Nov 10, 2008 2:42 pm ]
Post subject:  Re: zoc script questions from newbie

ah....I don't know why I didn't notice that. Thank you very much

Author:  otacon4wvu [ Mon Nov 10, 2008 3:23 pm ]
Post subject:  Re: zoc script questions from newbie

OK...Maybe someone can help me with this problem. I got the script to work fine after I fixed the typo, but I cannot get the script to stop once I get the planet I want (the Halo planet) made. It is supose to name the Halo planet,Yes, but it names it No like all the other ones...What am I doing wrong?

/* REXX (CREATED BY ZOC LEARN MODE) */

call zoctimeout 60

call zocsynctime 250

DO UNTIL ans=0
call zocsend "uy"
ans=zocWaitMux("Class A-FUI, Halo Planet|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class M, Earth Type")

select

when ans=0 then call zocsend "Yes^Mc"
when ans=1 then call zocsend "No^Mc lzdy"
when ans=2 then call zocsend "No^Mc lzdy"
when ans=3 then call zocsend "No^Mc lzdy"
when ans=4 then call zocsend "No^Mc lzdy"
when ans=5 then call zocsend "No^Mc lzdy"
when ans=6 then call zocsend "No^Mc lzdy"
when ans=7 then call zocsend "No^Mc lzdy"
end /* select*/
end /*do*/

thanks, otacon

Author:  Big D [ Tue Nov 11, 2008 3:00 am ]
Post subject:  Re: zoc script questions from newbie

otacon4wvu wrote:
OK...Maybe someone can help me with this problem. I got the script to work fine after I fixed the typo, but I cannot get the script to stop once I get the planet I want (the Halo planet) made. It is supose to name the Halo planet,Yes, but it names it No like all the other ones...What am I doing wrong?

/* REXX (CREATED BY ZOC LEARN MODE) */

call zoctimeout 60

call zocsynctime 250

DO UNTIL ans=0
call zocsend "uy"
ans=zocWaitMux("Class A-FUI, Halo Planet|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class M, Earth Type")

select

when ans=0 then call zocsend "Yes^Mc"
when ans=1 then call zocsend "No^Mc lzdy"
when ans=2 then call zocsend "No^Mc lzdy"
when ans=3 then call zocsend "No^Mc lzdy"
when ans=4 then call zocsend "No^Mc lzdy"
when ans=5 then call zocsend "No^Mc lzdy"
when ans=6 then call zocsend "No^Mc lzdy"
when ans=7 then call zocsend "No^Mc lzdy"
end /* select*/
end /*do*/

thanks, otacon


Your zocwaitmux format is wrong

Here's an example:

ans = zocwaitmux("Class A-FUI, Halo Planet", "Class K-BE, Desert wasteland")

Each planet type has to be inside quotes and seperated by a comma. Also make sure each string is exact spelling.

Author:  otacon4wvu [ Wed Nov 12, 2008 7:28 am ]
Post subject:  Re: zoc script questions from newbie

Thank you for the correction. I was getting nowhere, fast.

Author:  Father Cajone [ Wed Nov 12, 2008 8:32 pm ]
Post subject:  Re: zoc script questions from newbie

You might try the following link also as The Reverend has long been the master of ZOC scripting using REXX language...lots of good scripts there ready for your use and works very well in combination with TWX 2.04....latest version of ZOC that will support Rev's code is something like v3.14 I believe?

http://www.thereverend.org/tradewars/files.html

Author:  the reverend [ Wed Nov 12, 2008 9:08 pm ]
Post subject:  Re: zoc script questions from newbie

Father Cajone wrote:
You might try the following link also as The Reverend has long been the master of ZOC scripting using REXX language...lots of good scripts there ready for your use and works very well in combination with TWX 2.04....latest version of ZOC that will support Rev's code is something like v3.14 I believe?

http://www.thereverend.org/tradewars/files.html


actually they work in zoc 5 also, but you have to download each script individually from here:

http://thereverend.org/tradewars/public/files/script/

Author:  Kane [ Wed Nov 12, 2008 10:32 pm ]
Post subject:  Re: zoc script questions from newbie

thought it was 4.15. meh works for me :)

Author:  Father Cajone [ Wed Nov 12, 2008 11:37 pm ]
Post subject:  Re: zoc script questions from newbie

hiya Rev...reason I sent the link I did was because you left a couple examples of coding, the script library plus a couple things related to the rexx language. Of course, for those looking for just specific scripts then your direct link to scripts is better. I have found your _makeplanet.zrx useful many times! :D I have not tested it against LoneStar's Planet Creation v10 for TWX yet as I have been happy with your script. 8)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/