Author Topic: BBEANS Arena  (Read 1304 times)

Offline Dragonfire

BBEANS Arena
« on: July 22, 2008, 06:06:22 AM »
Can someone please tell me how to change the blade wall descending time?

Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
BBEANS Arena
« Reply #1 on: July 22, 2008, 07:16:54 AM »
When I downloaded the arena, The wall went down 20 seconds into the match because my bot landed on top of it, but it is normal the rest of the time.
I built that big robot on that TV show that time


Offline Madiaba

BBEANS Arena
« Reply #2 on: July 22, 2008, 07:21:31 AM »
Sure, Dragonfire.
1. Make a Back up.
2. Open the python document "bbeans" in the 'Arenas' folder.
3. Starting on line 47 (or just look for and) find this section:
 
 
if self.wallmaster == 370:
self.retractsound = plus.createSound("Sounds/liftmotor.wav", False, (0, 0, 0))
plus.playSound(self.retractsound)
if self.wallmaster > 370 and self.wallmaster < 390:
self.SetPinned ("bladewall", False)
self.prism.Lock(False)
self.prism.ApplyForce(50)

4. Just increase/decrease all of the highlighted timer numbers above, keeping in mind that the "370" is when the wall begins to descend, and "390" is the when it stops. So as you add/reduce the times keep the difference between them 20.
 
 
If you need help more help just say so.

« Last Edit: July 22, 2008, 09:14:30 AM by Madiaba »
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Dragonfire

BBEANS Arena
« Reply #3 on: July 22, 2008, 08:42:21 AM »
thought it was that line, but wasn't quite sure. thx a billion!

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
BBEANS Arena
« Reply #4 on: July 22, 2008, 10:55:49 PM »
The wall is supposed to retract early if a bot gets flipped into the blade, so the bot doesn't get stuck in there.

An easier way to decrease the retraction time, though: just change the default value of self.wallmaster.  In def __init__, just change "self.wallmaster = 0" to "self.wallmaster = 100" or something.  If you want to increase the retraction time, then self.wallmaster will have to be negative.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings