Jump to content
SubSpace Forum Network

Recommended Posts

Posted

Well im making a Football bot that marks where the next down is.. (every 10 yards)

 

So, the team gets the next down, now i have to make the down 10 yards down. So, i type !dline

 

The problem is, there would already be a line object turned on, and i dont want 2 turned on at the same time cuz thats gay blum.gif

 

There should be a way to turn off all of the objects currently turned on. If not, how can i make the bot turn off the last object turned on?

Posted
hrmmm, if you don't have too many frikkin' objects, you could just have the bot send *objset -1, -2, -3, -4, -5, etc until it covers all the possible numbers - then have it turn on what you want
Posted

If you have a line object at every 1 yard increment, and they are objects numbered say 100-200, then just do something like:

 

*objset +147,-137,

 

to turn on 147 and off 137. Note that the plus and the trailing comma are necessary. This implies that you need to remember all objects that are on. I have proposed a system of object groups within the LVZ so that you could turn on any one object and all the rest go off automatically (client side). This would solve a common problem in arenas that have extensive use of 0-9 digits for scoreboards and other data. But Priit was not interested at the time.

Posted
You can't make a bot of any complexity without some sort of state. The new statbox bot for PB has to keep state for over 100 digits all over the screen, and *objset commands need multiple lines. blum.gif
Posted
yes well um the bot controls this and how is the bot going to know the previous *objon number?

 

...did you even bother to read my post up there?

 

Read it :roll:

Posted

Surely the whole thing should be automated anyway, there shouldn't be any commands involved.

In any case, just store the object number of the yard line you turned on. When you want to change to another one, objoff the stored ID, objon the new ID and store it.

If that's too complicated you could use Akai's method. But I think Merv keeps an array of objects along with whether they are enabled or disabled, so you could just disable the necessary ones.

Posted
hrmmm, if you don't have too many frikkin' objects, you could just have the bot send *objset -1, -2, -3, -4, -5, etc until it covers all the possible numbers - then have it turn on what you want

 

im going to have 100 objects just for yard lines smile.gif but i guess i could do that

Posted
I think it's in the latest, but at the moment it's pre-release, so it may not be stable. If it was usable however, I suppose you could just move the line graphic to the appropriate position (as I'm sure Ekted was getting at)
Posted
hrmmm, if you don't have too many frikkin' objects, you could just have the bot send *objset -1, -2, -3, -4, -5, etc until it covers all the possible numbers - then have it turn on what you want

 

wait wait, does the bot have a character limit for when its sending a message too?

Guest
This topic is now closed to further replies.
×
×
  • Create New...