Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Quick Question, need answer ASAP
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Fri Oct 31, 2003 8:41 am    Post subject: Quick Question, need answer ASAP Reply with quote

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
View user's profile Send private message Send e-mail
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Fri Oct 31, 2003 8:55 am    Post subject: Reply with quote

I don't think it is possible. I would just tell it to Play Song (whatever song was playing).
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Fri Oct 31, 2003 9:27 am    Post subject: Reply with quote

@#$%!

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
View user's profile Send private message Send e-mail
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Fri Oct 31, 2003 9:30 am    Post subject: Reply with quote

Unfortunately not that I can think of off hand.
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Fri Oct 31, 2003 9:55 am    Post subject: Reply with quote

Fine. I'll just include taht fact in the readme. Raspberry!
_________________
But enough talk, have at you!
Back to top
View user's profile Send private message Send e-mail
Dark SKell Angel
über beer drinker




Joined: 11 Jun 2003
Posts: 45
Location: 9th circle of hell : COM

PostPosted: Fri Oct 31, 2003 11:50 am    Post subject: Reply with quote

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 Oookay...

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
View user's profile Send private message
Minnek
Conjurer




Joined: 03 Jun 2003
Posts: 430
Location: Somewhere

PostPosted: Fri Oct 31, 2003 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Mr B




Joined: 20 Mar 2003
Posts: 382

PostPosted: Fri Oct 31, 2003 12:56 pm    Post subject: Reply with quote

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 Big grin
Back to top
View user's profile Send private message
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Fri Oct 31, 2003 1:07 pm    Post subject: Reply with quote

NO NO NO NO NO NO NO NO NO!!!!!!!!
_________________
But enough talk, have at you!
Back to top
View user's profile Send private message Send e-mail
Dark SKell Angel
über beer drinker




Joined: 11 Jun 2003
Posts: 45
Location: 9th circle of hell : COM

PostPosted: Fri Oct 31, 2003 1:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Fri Oct 31, 2003 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Fri Oct 31, 2003 3:18 pm    Post subject: Reply with quote

Hopefully Mr. B is reading this, because I'm gonna leave it in his hands...Raspberry!
_________________
But enough talk, have at you!
Back to top
View user's profile Send private message Send e-mail
Flamer
The last guy on earth...




Joined: 04 Feb 2003
Posts: 725
Location: New Zealand (newly discovered)

PostPosted: Fri Oct 31, 2003 7:02 pm    Post subject: Reply with quote

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 Raspberry!
(no offense to anyone that was mentioned)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Mad Cacti
Guest






PostPosted: Fri Oct 31, 2003 10:29 pm    Post subject: Reply with quote

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
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Sat Nov 01, 2003 8:31 am    Post subject: Reply with quote

Eh. I'm not good at optimizing, just good at making it work. :\
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group