To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.spyboticsOpen lugnet.robotics.spybotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Spybotics / 270
269  |  271
Subject: 
Re: Spybot studies: seek a world object
Newsgroups: 
lugnet.robotics.spybotics
Date: 
Mon, 10 Nov 2003 21:09:29 GMT
Viewed: 
7654 times
  
In lugnet.robotics.spybotics, Brian B. Alano wrote:
beacon.nqc

Uses World Relation Table to get a fix on and drive to another object.
The object can be a Spybot, PC, or Spybot Controller.

Cool program.  Keep up the great work!

4. There's probably a ROM routine that does the same thing as this
program, but it may not be useful from NQC.

You might be able to use PointToward_Bead without running into problems.

__nolist void PointToward_Bead(const int& nTimes)
{ asm { 0xe3, &nTimes, 0x17, 81, 0x01, 1 }; }

This ROM routine monitors an event which, in MindScript, is called
ExitBeadEvent.  It is assigned the number 4 so if you wanted to exit this
routine early you could programatically fire event #4, like so:

#define ExitBeadEvent 4

// ...

Event(EVENT_MASK(ExitBeadEvent));

John Hansen



Message has 1 Reply:
  Re: Spybot studies: seek a world object
 
(...) Or, then again, you might not. As with the vast majority of the ROM subroutines (and all the _Bead subroutines) this subroutine fiddles around with a global variable (via calls to EnterBead and ExitBead). In this case it happens to be global (...) (21 years ago, 10-Nov-03, to lugnet.robotics.spybotics)

Message is in Reply To:
  Spybot studies: seek a world object
 
/* beacon.nqc Uses World Relation Table to get a fix on and drive to another object. The object can be a Spybot, PC, or Spybot Controller. The program fixes on (i.e. drives to) the first object it finds. If that object disappears from the "radar", (...) (21 years ago, 10-Nov-03, to lugnet.robotics.spybotics)

14 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR