View previous topic :: View next topic |
Author |
Message |
Shadowiii It's been real.
Joined: 14 Feb 2003 Posts: 2460
|
Posted: Fri Oct 31, 2003 8:41 am Post subject: Quick Question, need answer ASAP |
|
|
Is there a command that "resumes" the map's set music?
Example: You are running around. Somethign happens to trigger a music change. However, during this time you walk into another room (the script continues to run). When the script is over, is there a command to get back to the map's music? Like "play music (default)" or something?
If it isn't possible please just tell me. If it is...I really need to know as soon as possible.
Thanks in advance. _________________ But enough talk, have at you! |
|
Back to top |
|
|
Setu_Firestorm Music Composer
Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
|
Shadowiii It's been real.
Joined: 14 Feb 2003 Posts: 2460
|
Posted: Fri Oct 31, 2003 9:27 am Post subject: |
|
|
@#$%!
Is there a "remember song" command like "remember item?"
"Recall song?"
"Song Number = x, play song x?"
GAAAAAAAAAAAAAH!!!!!!!!!!!!!!! _________________ But enough talk, have at you! |
|
Back to top |
|
|
Setu_Firestorm Music Composer
Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
|
Shadowiii It's been real.
Joined: 14 Feb 2003 Posts: 2460
|
Posted: Fri Oct 31, 2003 9:55 am Post subject: |
|
|
Fine. I'll just include taht fact in the readme. _________________ But enough talk, have at you! |
|
Back to top |
|
|
Dark SKell Angel über beer drinker
Joined: 11 Jun 2003 Posts: 45 Location: 9th circle of hell : COM
|
Posted: Fri Oct 31, 2003 11:50 am Post subject: |
|
|
There is a way that you could remember the last song being played, since all the song names equal to a number (wich are saved in the HSI file).
ex:
define constant(
00,SONG:Happy
01,SONG:Not so Happy
)
The song "Happy", is actually a number that equals 0, like Not so Happy equals 1 and so forth. You then take that number and insert it into a global variable and your song is saved....ex:
global variable(
1,Last Song
)
Last Song:=Happy
later on:
play song (Last Song)
Global variables are saved into the .sav file after each game, so the the Last Song is saved that way.
However, you have to create a script to play the songs
There is a concrete example of what I mean in my sims game in the JobSys file _________________ Yeah, I thought I was dead too.
Old skool RPGexcel member |
|
Back to top |
|
|
Minnek Conjurer
Joined: 03 Jun 2003 Posts: 430 Location: Somewhere
|
Posted: Fri Oct 31, 2003 12:35 pm Post subject: |
|
|
Well, if you want it to resume music, you can always check the map they're on and play the appropriate music for it. I did that in one of my earliest plotscripts, shouldn't be too hard to implement. _________________ * SDHawk has joined #Minnek
SDHawk> AAAAAAAAAAAAAUUUUUUUUUGH
* SDHawk has left #Minnek (Leaving) |
|
Back to top |
|
|
Mr B
Joined: 20 Mar 2003 Posts: 382
|
Posted: Fri Oct 31, 2003 12:56 pm Post subject: |
|
|
So then..! The only way to emulate a 'play map music' command would be to have a script that is passed the ID# of the current map, and the uses a wad of in-then loops to return the # of the appropriate song.
if(Shall we do it?) then
(
shadowiii(:flamedevil:)
)
j/k |
|
Back to top |
|
|
Shadowiii It's been real.
Joined: 14 Feb 2003 Posts: 2460
|
Posted: Fri Oct 31, 2003 1:07 pm Post subject: |
|
|
NO NO NO NO NO NO NO NO NO!!!!!!!! _________________ But enough talk, have at you! |
|
Back to top |
|
|
Dark SKell Angel über beer drinker
Joined: 11 Jun 2003 Posts: 45 Location: 9th circle of hell : COM
|
Posted: Fri Oct 31, 2003 1:53 pm Post subject: |
|
|
And why not
Maybe maybe maybe maybe maybe
Ne ways, if you want I could make the script for you if you want _________________ Yeah, I thought I was dead too.
Old skool RPGexcel member |
|
Back to top |
|
|
Aethereal SHUT UP. Elite Designer
Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Fri Oct 31, 2003 2:51 pm Post subject: |
|
|
Just do it with a for loop!
Code: |
global variable (1, mapmusic)
script, store map music, begin
variable (n)
for (n, 1, 10, 1) #Replace the first 1 and 10 with the lowest map number and highest map number
do(
if (current map == n)
then (set variable (mapmusic, n)) #Now you can recall the map's music using if-then with variable mapmusic.
)
end |
_________________
|
|
Back to top |
|
|
Shadowiii It's been real.
Joined: 14 Feb 2003 Posts: 2460
|
Posted: Fri Oct 31, 2003 3:18 pm Post subject: |
|
|
Hopefully Mr. B is reading this, because I'm gonna leave it in his hands... _________________ But enough talk, have at you! |
|
Back to top |
|
|
Flamer The last guy on earth...
Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Fri Oct 31, 2003 7:02 pm Post subject: |
|
|
can't you get a textbox and set it to "restore music"
worked for me back in the days, when i only knew "show textbox" and "walk hero" commands for plotscripting...
i've come a long way... _________________ If we were a pack of dogs, IM would be a grand Hound, CN would be a very ficious little pitball, and Giz...well, it doesn't matter breed he is, he'd still be a bitch
(no offense to anyone that was mentioned) |
|
Back to top |
|
|
Mad Cacti Guest
|
Posted: Fri Oct 31, 2003 10:29 pm Post subject: |
|
|
Hahahahaha...
That script of your Aeth, boils down to 1 line of code:
Code: | mapmusic : = current map |
Yeah textboxs is definily the easiest way.. |
|
Back to top |
|
|
Aethereal SHUT UP. Elite Designer
Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Sat Nov 01, 2003 8:31 am Post subject: |
|
|
Eh. I'm not good at optimizing, just good at making it work. :\ _________________
|
|
Back to top |
|
|
|