Author Topic: Scripting for...  (Read 4093 times)

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Scripting for...
« on: October 16, 2008, 10:11:05 AM »
Hi All.
Can someone tell me the scripting that i need for this:
Making music play all through a fight in an arena and so that it plays something different everytime(Switches through music)
Thanks!
Whamett
(I know that you need the music to be .wav or something, and i can do that)
Damn I should probably put something fancy in this bit huh?

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Scripting for...
« Reply #1 on: October 16, 2008, 10:56:49 AM »
Quote from: WhamettNuht;17447

Making music play all through a fight in an arena and so that it plays something different everytime(Switches through music)


I asked myself the same question. I think you can add one track, by adding several command lines to the arena's .py, but several, I doubt it.

I bet that Mad can help us for that.

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Scripting for...
« Reply #2 on: October 16, 2008, 11:28:43 AM »
Quote from: Naryar;17451
I asked myself the same question. I think you can add one track, by adding several command lines to the arena's .py, but several, I doubt it.

I bet that Mad can help us for that.

yep. even i think i know how. (mad went through it a bit with me when making the RAW arena sounds. if you notice the arena announcer says "welcome to the RAW zone!")
You got my vote for RA2 Wizard. Always and forever.

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Scripting for...
« Reply #3 on: October 16, 2008, 12:05:14 PM »
Does it?
I've looked at all of the videos, but it says "Welcome to the combat zone".
Say, pm me so that i can get an idea.
Damn I should probably put something fancy in this bit huh?

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Scripting for...
« Reply #4 on: October 16, 2008, 12:08:52 PM »
Quote from: WhamettNuht;17468
Does it?
I've looked at all of the videos, but it says "Welcome to the combat zone".
Say, pm me so that i can get an idea.

well the newest ones should say it... listen closely. the old ones didn't. (first round)
You got my vote for RA2 Wizard. Always and forever.

Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
Scripting for...
« Reply #5 on: October 16, 2008, 02:25:22 PM »
I heard it once in the second round.
I built that big robot on that TV show that time


Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Scripting for...
« Reply #6 on: October 16, 2008, 02:39:51 PM »
What fight?
Damn I should probably put something fancy in this bit huh?

Offline goose

  • *
  • Posts: 10015
  • Rep: 1
    • View Profile
    • Awards
Scripting for...
« Reply #7 on: October 16, 2008, 02:59:23 PM »
please keep all useful tutorials public, if you can.
thanks.
sippin' on my Honeydew bubble tea.
party in my tummy. yummy, yummy.

Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
Scripting for...
« Reply #8 on: October 16, 2008, 03:17:36 PM »
i don't know, but you can hear it also in the Reier vs. K343gs fight.
I built that big robot on that TV show that time


Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Scripting for...
« Reply #9 on: October 16, 2008, 03:20:51 PM »
Oh yeah!
Thanks for that!
Damn I should probably put something fancy in this bit huh?

Offline Madiaba

Scripting for...
« Reply #10 on: October 16, 2008, 05:10:58 PM »
Wham, here's the coding for Arena Background music:
(If you need help on the indenting, let me know)
 
def __init__(self):
self.StartMusicTimer = 0
 
def HazardsOn(self, on):
self.game_music = plus.createSound("Sounds/BalladOfJedClampet.wav", False, (0,0,0))
 
def __del__(self):
plus.stopSound(self.game_music)
plus.removeSound(self.game_music)
Arenas.SuperArena.__del__(self)
 
def Tick(self):
if self.StartMusicTimer <= 20:
self.StartMusicTimer += 1
if self.StartMusicTimer == 20:
plus.loopSound(self.game_music)
 
 
 
 
Here's a snipet vid of the Arena music: The Hoedown Dance!
(I actually love the Banjo...:-D)
 
 
..
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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Scripting for...
« Reply #11 on: October 16, 2008, 05:19:15 PM »
I love you Mad.

So we can put these lines anywhere on the arena .py?

And we can't have more than one media file in the "playlist"?

Offline Madiaba

Scripting for...
« Reply #12 on: October 16, 2008, 05:27:44 PM »
No, Nar, not anywhere. The Black text is/are headings, under which the blue coding goes, with proper indenting...
If you've any probs, then just send me the py and I'll put it in for you...
 
More than one song would take a little more coding than written above.
 
(BTW: Did you have a look at the vid above using this coding?..:
-------------------------------------------- "The Hoedown Dance!".)
 
...
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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Scripting for...
« Reply #13 on: October 16, 2008, 05:32:51 PM »
Saw it. What the heck is that one-hit-kill custom component? Minicannon?

Offline ACAMS

Scripting for...
« Reply #14 on: October 16, 2008, 05:40:19 PM »
LOL......Good one

Offline Madiaba

Scripting for...
« Reply #15 on: October 16, 2008, 05:52:47 PM »
Nar, It's an Electro-static Discharge Generator. It's powerful, but that was just a lucky 1HK.  It usually tears off components/parts first.  PM me if you'd like to know how it works.
 
ACAMS, I'm going to AI that bot, with that uber-powerful weapon. Then YOU can 'RULE the WORLD!' (...as long as I'm #2. *hehe*)
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 Gigafrost

  • *
  • Posts: 805
  • Rep: 0
  • You'll never know what I'll think of next.
    • View Profile
    • Awards
Scripting for...
« Reply #16 on: October 16, 2008, 07:33:52 PM »
Mad Mad Mad... You and your python based cranium. Anyways good job.

Offline DuckRA2

  • *
  • Posts: 1006
  • Rep: 1
    • View Profile
    • Awards
Scripting for...
« Reply #17 on: October 16, 2008, 08:02:37 PM »
I have an idea of another way to make one, just make a weapon with the bounding collision box bigger than the component, and then make the component do a lot of damage.

Offline ACAMS

Scripting for...
« Reply #18 on: October 16, 2008, 08:18:21 PM »
Quote from: Madiaba;17541
Then YOU can 'RULE the WORLD!' (...as long as I'm #2. *hehe*)

As long as I can find a use for you.

Offline Gigafrost

  • *
  • Posts: 805
  • Rep: 0
  • You'll never know what I'll think of next.
    • View Profile
    • Awards
Scripting for...
« Reply #19 on: October 16, 2008, 09:56:52 PM »
lawlzie walzies <3