gametechmods
Robot Arena => General Support => Topic started by: Dragonfire on July 22, 2008, 06:06:22 AM
-
Can someone please tell me how to change the blade wall descending time?
-
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.
-
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.
-
thought it was that line, but wasn't quite sure. thx a billion!
-
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.