1. Music Error Message 2. Multiple Conditions

Started by PsychicHeart, Tue 05/07/2005 04:23:04

Previous topic - Next topic

PsychicHeart

hey,
i have two problems that i doubt my game will be able to function with.

1. Whenever i try to test my game so i can see if the music works, i get an error message "Unable to play music: Unable to detect MIDI Sound Driver" or something like that. Long story short i can't hear the music and i know it isn't my speakers.

2.  How can i make it so that 4 conditions (or more) affect what happens. For example, if you only want the player to win a challenge if they have 3 specific items, instead of just one, how do you do this.


Cheers,
Blake
Formerly known as Flukeblake, Flukezy etc.

Gilbert

1. Try upgrading DirectX and/or your soundcard drivers (if not done so already) and/or try a different device (if available) in the game's setup, and see if that helps.

2. Use some variables (if the events occurs in different rooms, you may try using GlobalInts) to track whether some events had happened, and then check for them.
Like for example:

if ((a==1)&&(b==1)&&(c==1)) do something

Scummbuddy

1) I get this problem if I currently have Windows Media Player open, either already playing a song, paused, or just stopped.

2) do something to the affect of:
Code: ags

if((GetGlobalInt(6) == 1) && (GetGlobalInt(3) == 1) && (GetGlobalInt(7) == 1) && (GetGlobalInt(8) == 2) && (GetGlobalInt(9) == 1) && (GetGlobalInt(10) == 1))
{
Wait(80);
NewRoomEx(3, 260, 160);
 Ã, 
}
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

PsychicHeart

for 2, i was thinking that you do the following Interaction Sequence.

Conditional - Player has Inventory Item (0)
Conditional -Player has Inventory Item (1)
Conditional -Player has Inventory Item (2)
Game - Go to new room (412)


Will this work?
Formerly known as Flukeblake, Flukezy etc.

Gilbert

Yes, but they have to be nested like this:
Conditional - Player has Inventory Item (0)
  Conditional -Player has Inventory Item (1)
    Conditional -Player has Inventory Item (2)
       Game - Go to new room (412)

PsychicHeart

Formerly known as Flukeblake, Flukezy etc.

SMF spam blocked by CleanTalk