RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How to make a script play the 1st music

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 87
RMU Admin
ok here is what i have
Audio.bgm_play("Audio/BGM/" + "001-Battle01", 100, 100)
i want it to play the 1st BGM. what im trying to say is there a way i can just put "1" instead of typing "001-Battle01" to play the 1st BGM.

need more info just ask

*
A Random Custom Title
Rep:
Level 96
wah
Couldn't you just do @one = "001-Battle01" in the beginning and then do Audio.bgm_play("Audio/BGM/" + @one, 100, 100) ?

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
yes you could
but that would create an extra line of needless code
I'm pretty sure that you need to type the name.
if you need to sort through several tracks, then I'd use an array of all their names
and it would look like

Code: [Select]
@songs = ["001-Whatever", etc...]
then
Code: [Select]
Audio.bgm_play("Audio/BGM/" + @songs[i], 100, 100)
where i is the index in the array that you want to play

actually, if you're only looking to play one you can just type in
Code: [Select]
Audio.bgm_play("Audio/BGM/001-Whatever",100,100)
if I'm not mistaken

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon