ID:171794
 
How do i add sounds or mid to my game is there speciffic code i can learn from?
Look up the sound() proc in the reference.
In response to Mobius Evalon
Mobius Evalon wrote:
Look up the sound() proc in the reference.


Thanks
In response to Govegtos
hi i went on that and so i copied it over and change the midi to this

world << sound('ferrari.wav')

can some1 tell me why it doesnt work
In response to Jaydude
No, because what you've shown is perfectly, 100% correct.

However, it is out of context, so just like how the word "frankfurter" is correct, it doesn't make sense when in the frankfurter of a completely unrelated sentence.
In response to Garthor
where abouts do i put it in my code

//This is F1_2003 created by JayDude on 06/08/04.

mob
icon = 'Cars.dmi'

mob/Login()
var/choice = input("Team/Driver") in list("Sauber: Felipe Massa","Sauber: Giancarlo Fisichella","Toyota: Olivier Panis","Toyota: Cristiano Da Matta","Jordan: Nick Heidfeld","Jordan: Giorgio Pantano","BAR: Jenson Button","BAR: Takuma Sato","Ferrari: Micheal Schumacher","Ferrari: Rubbuns Barricello","Williams: Juan Pablo Montoya","Williams: Ralf Schumacher","Jaguar: Mark Webber","Jaguar: Cristian Klien","Mclaren: Kimi Raikkonen","Mclaren: David Coulthard","Minardi: Gianmaria Bruni","Minardi: Zsolt Baumgartner","Renault: Fernando Alonso","Renault: Jarno Trulli")
src.loc=locate(27,3,1)



src.name = choice
src.icon_state = choice

mob/var

health = 1000

mob/Stat()

stat("health",health)

statpanel("laps",contents)

world/hub="Jaydude.F1_2003"

mob
verb
say(msg as text)
usr << "[name], '[msg]'"
oview() << "[usr] says, '[msg]'"

mob/verb/OOC(msg as text)
world<<"{OOC} [usr]: [msg]"

mob/Logout()
var/savefile/F = new(ckey)
Write(F)
del(src)

mob/Login()
var/savefile/F = new(ckey)
Read(F)
return ..()

mob
var/tmp
mob/leader
followers[]

var/savefile/SaveFile = new("players.sav")

mob/Login()
SaveFile.cd = "/" //make sure we are at the root
if(ckey in SaveFile.dir)
SaveFile.cd = ckey
Read(SaveFile)
usr << "Welcome back, [name]!"
else
usr << "Welcome to F1_2003 Pick aplace on the Grid,this is the official site for F1_2003 game http://uk.geocities.com/chick_magnet_uk2002/F1_2003.html,. I need help with some coding if u want to help then page me or talk to me in game made by JayDude, JayDude!"
..()

client/New()
var/savefile/F = new(ckey)
F >> usr
return ..()
client/Del()
var/savefile/F = new(ckey)
F << usr
del(usr)

turf
grass
icon = 'Turfs.dmi'
icon_state = "grass"

turf
road
icon = 'Turfs.dmi'
icon_state = "road"

turf
wall
icon = 'Turfs.dmi'
icon_state = "wall"
density = 1

turf
start
icon = 'Turfs.dmi'
icon_state = "start"

turf
water
icon = 'Turfs.dmi'
icon_state = "water"

turf
hotel
icon = 'Turfs.dmi'
icon_state = "hotel"
density = 1

turf
boat1
icon = 'Turfs.dmi'
icon_state = "boat1"
density = 1

turf
boat2
icon = 'Turfs.dmi'
icon_state = "boat2"
density = 1

turf
boat3
icon = 'Turfs.dmi'
icon_state = "boat3"
density = 1

turf
chimmy
icon = 'Turfs.dmi'
icon_state = "chimmy"
density = 1

turf
arrow
icon = 'Turfs.dmi'
icon_state = "arrow"

turf
tire_marks
icon = 'Turfs.dmi'
icon_state = "tire_marks"

turf
arrow2
icon = 'Turfs.dmi'
icon_state = "arrow2"

turf
arrow3
icon = 'Turfs.dmi'
icon_state = "arrow3"

turf
arrow4
icon = 'Turfs.dmi'
icon_state = "arrow4"

turf
arrow5
icon = 'Turfs.dmi'
icon_state = "arrow5"

turf
arrow6
icon = 'Turfs.dmi'
icon_state = "arrow6"

turf
Grid
icon = 'Turfs.dmi'
icon_state = "Grid"

turf
Safty_Car
icon = 'Turfs.dmi'
icon_state = "Safty_Car"
density = 1

turf
lights
icon = 'Turfs.dmi'
icon_state = "lights"

turf
lights2
icon = 'Turfs.dmi'
icon_state = "lights2"

turf
F
icon = 'Turfs.dmi'
icon_state = "F"

turf
W
icon = 'Turfs.dmi'
icon_state = "W"

turf
M
icon = 'Turfs.dmi'
icon_state = "M"

turf
MI
icon = 'Turfs.dmi'
icon_state = "MI"

turf
T
icon = 'Turfs.dmi'
icon_state = "T"

turf
J
icon = 'Turfs.dmi'
icon_state = "J"

turf
JA
icon = 'Turfs.dmi'
icon_state = "JA"

turf
S
icon = 'Turfs.dmi'
icon_state = "S"

turf
BAR
icon = 'Turfs.dmi'
icon_state = "BAR"

turf
R
icon = 'Turfs.dmi'
icon_state = "R"

turf
Pitline
icon = 'Turfs.dmi'
icon_state = "Pitline"

turf
Pitline2
icon = 'Turfs.dmi'
icon_state = "Pitline2"

turf
pitsign
icon = 'Turfs.dmi'
icon_state = "pitsign"

turf/start

Entered(O)

O << "started your lap!"

turf/checkpoint

Entered(O)

O << "first checkpoint down!"

turf/checkpoint2

Entered(O)

O << "second checkpoint down!"

turf/checkpoint3

Entered(O)

O << "third checkpoint down!"

turf/finish

Entered(O)

O << "end of lap!"

turf/pitpoint

Entered(O)

O << "u are now leaving the pits!"


turf/pitpoint2

Entered(O)

O << "u are now entering the pits!"



In response to Jaydude
turf/start

Entered(O)

O << "started your lap!"

turf/checkpoint

Entered(O)

O << "first checkpoint down!"

turf/checkpoint2

Entered(O)

O << "second checkpoint down!"

turf/checkpoint3

Entered(O)

O << "third checkpoint down!"

turf/finish

Entered(O)

O << "end of lap!"

turf/pitpoint

Entered(O)

O << "u are now leaving the pits!"


turf/pitpoint2

Entered(O)

O << "u are now entering the pits!"

No one's going to play a game with bad grammar...
Well, some people might, but this would make me not want to play =/.
In response to Hell Ramen
if i correct grammer will u consider playing it
In response to Jaydude
No, because there's more wrong with it than that.