Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

CL: help me write macro

 
   Macintosh computer (Home) -> Adventure RSS
Next:  Mac Games for sale on eBay (Myst, Sam And Max etc..  
Author Message
cyberbeing

External


Since: Aug 28, 2003
Posts: 7



(Msg. 1) Posted: Sat Feb 21, 2004 10:37 pm
Post subject: CL: help me write macro
Archived from groups: comp>sys>mac>games>adventure (more info?)

I wrote a macro to repeat polish sword of soul until it see your face.
But the macro only repeat polish and dont end. Please help.

{
set @interruptkey "true"
label one
"/use /polish\r"
set wrd1 @env.textLog
if @env.textLog == "You can now see your face in your Sword of Souls."
goto two
else
goto one
end if
label two
message "€ polish done"
}

 >> Stay informed about: CL: help me write macro 
Back to top
Login to vote
Gorvin

External


Since: Jul 14, 2003
Posts: 2



(Msg. 2) Posted: Sat Feb 21, 2004 10:37 pm
Post subject: Re: CL: help me write macro [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

cyberbeing <email.TakeThisOut@domain.com> wrote in message news:<210220041937517306%email@domain.com>...
 > I wrote a macro to repeat polish sword of soul until it see your face.
 > But the macro only repeat polish and dont end. Please help.
 >
 > {
 > set @interruptkey "true"
 > label one
 > "/use /polish\r"
 > set wrd1 @env.textLog
 > if @env.textLog == "You can now see your face in your Sword of Souls."
 > goto two
 > else
 > goto one
 > end if
 > label two
 > message "? polish done"
 > }

Well, for one thing, you need to add a pause somewhere in the macro,
preferable right below "/use /polish\r". Also if you have time-stamps
on, you'll need to change the == in your if statement to >=.

So, it should look like this:

{
set @interruptkey "true"
label one
"/use /polish\r"
pause 1
set wrd1 @env.textLog
if @env.textLog >= "You can now see your face in your Sword of Souls."
goto two
else
goto one
end if
label two
message "• polish done"
}

I haven't actually tested this, but it *should* work.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: CL: help me write macro 
Back to top
Login to vote
cyberbeing

External


Since: Aug 28, 2003
Posts: 7



(Msg. 3) Posted: Sun Feb 22, 2004 3:46 pm
Post subject: Re: CL: help me write macro [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <21726f6e.0402211423.78033094.RemoveThis@posting.google.com>, Gorvin
<chaos799.RemoveThis@hotmail.com> wrote:

 > cyberbeing <email.RemoveThis@domain.com> wrote in message
 > news:<210220041937517306%email@domain.com>...
  > > I wrote a macro to repeat polish sword of soul until it see your face.
  > > But the macro only repeat polish and dont end. Please help.
  > >
  > > {
  > > set @interruptkey "true"
  > > label one
  > > "/use /polish\r"
  > > set wrd1 @env.textLog
  > > if @env.textLog == "You can now see your face in your Sword of Souls."
  > > goto two
  > > else
  > > goto one
  > > end if
  > > label two
  > > message "? polish done"
  > > }
 >
 > Well, for one thing, you need to add a pause somewhere in the macro,
 > preferable right below "/use /polish\r". Also if you have time-stamps
 > on, you'll need to change the == in your if statement to >=.
 >
 > So, it should look like this:
 >
 > {
 > set @interruptkey "true"
 > label one
 > "/use /polish\r"
 > pause 1
 > set wrd1 @env.textLog
 > if @env.textLog >= "You can now see your face in your Sword of Souls."
 > goto two
 > else
 > goto one
 > end if
 > label two
 > message "• polish done"
 > }
 >
 > I haven't actually tested this, but it *should* work.

Thanks but cant work. And I discovered that when I polished the sword 2
lines came out:

2/22/04 12:42:15p You can now see your face in your Sword of Souls.
2/22/04 12:42:15p You polish your Sword of Souls.

I recalled wrd1 to show on sidebar that
@env.textLog only contains "You polish your Sword of Souls." but not
"You can now see your face in your Sword of Souls.".

What modification shall I make?

Thanks<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: CL: help me write macro 
Back to top
Login to vote
Hidden

External


Since: Oct 01, 2003
Posts: 107



(Msg. 4) Posted: Sun Feb 22, 2004 3:46 pm
Post subject: Re: CL: help me write macro [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <220220041246313939%email@domain.com>,
cyberbeing <email.DeleteThis@domain.com> wrote:

 > Thanks but cant work. And I discovered that when I polished the sword 2
 > lines came out:
 >
 > 2/22/04 12:42:15p You can now see your face in your Sword of Souls.
 > 2/22/04 12:42:15p You polish your Sword of Souls.
 >
 > I recalled wrd1 to show on sidebar that
 > @env.textLog only contains "You polish your Sword of Souls." but not
 > "You can now see your face in your Sword of Souls.".
 >
 > What modification shall I make?

There is no modification that would work. You'll either have to give up
or write an external program to parse the text log and do it.

--
HWC for Hidden <hidden.DeleteThis@noDASHop.com> <http://www.oralse.cx/>
"Carpe diem via scrotum."<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: CL: help me write macro 
Back to top
Login to vote
cyberbeing

External


Since: Aug 28, 2003
Posts: 7



(Msg. 5) Posted: Sun Feb 22, 2004 8:55 pm
Post subject: Re: CL: help me write macro [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <hidden-CC82C1.21515021022004@localhost>, Hidden
<hidden RemoveThis @noDASHop.com> wrote:

 > In article <220220041246313939%email@domain.com>,
 > cyberbeing <email RemoveThis @domain.com> wrote:
 >
  > > Thanks but cant work. And I discovered that when I polished the sword 2
  > > lines came out:
  > >
  > > 2/22/04 12:42:15p You can now see your face in your Sword of Souls.
  > > 2/22/04 12:42:15p You polish your Sword of Souls.
  > >
  > > I recalled wrd1 to show on sidebar that
  > > @env.textLog only contains "You polish your Sword of Souls." but not
  > > "You can now see your face in your Sword of Souls.".
  > >
  > > What modification shall I make?
 >
 > There is no modification that would work. You'll either have to give up
 > or write an external program to parse the text log and do it.

Ah, know nothing to write external program. May need give up then.

Thanks anyway<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: CL: help me write macro 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Macro Reference - Many sites reference the caltech/~barrick/macros link, but it doesn't exist. Anyone have that saved, cached, etc? Thanks, rhdennis

CL: 'nother macro question - Has anyone successfully used two dimension arrays in the CL macro language? If so, what structure? Is there a 'nul' variable for instance? How do you control setting the various cells? Can multiple cells be tested at the same time? set(global)..

CL: Undocumented Macro feature - I just stumbled on another interesting undocumented feature similar in nature to one Phineas wrote about some time ago. His involved setting goto points via a variable. Turns out this is a VERY powerful feature and I've used this extensively in my..

Question: Need I buy Medal of Honor x 2 times? - Hello I plan to buy Medal of Honor Allied Assault for my Apple iBook OS X. I then want to play it together with friends on more than 1 computer. Need I buy more than one copy or can I install the game on the other machines. A seller told me that there..

Is anyone planning on getting EverQuest? - With EverQuest for the Mac being released tomorrow, June 23, I'm curious if any of the folks here are planning on giving it a try? I've been playing in the beta for a couple of months and really enjoying it. -Rodney
   Macintosh computer (Home) -> Adventure All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]