adding custom sound to a secret

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: adding custom sound to a secret

Post by Neikun »

IronMaiden wrote:
Neikun wrote:Which did it? The min distance?
the function code you gave me did it :) it activates via a pressure plate as i enter the loot room and the entire song plays :))
I'm glad it did. Though I'm not entirely sure what was different lol
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
IronMaiden
Posts: 17
Joined: Sun Oct 21, 2012 1:08 am

Re: adding custom sound to a secret

Post by IronMaiden »

Neikun wrote:
IronMaiden wrote:
Neikun wrote:Which did it? The min distance?
the function code you gave me did it :) it activates via a pressure plate as i enter the loot room and the entire song plays :))
I'm glad it did. Though I'm not entirely sure what was different lol

mine looked like this:

function playsound()
playSound("Invader")

end
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: adding custom sound to a secret

Post by JohnWordsworth »

I wonder if perhaps 'playsound' is sacrosanct in some way, and you were essentially trying to redefine an internal function called 'playsound' with your function definition? By renaming it to 'invadersound' you might have avoided that clash. Just a thought as to the mystery!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: adding custom sound to a secret

Post by Komag »

yeah, that's one problem that crops up now and then, the accidental reuse of some term or name, such as naming an entity and function the same thing, or in this case, naming a function the same as some other command that already exists.
Finished Dungeons - complete mods to play
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: adding custom sound to a secret

Post by Neikun »

That's what I thought, though I thought I had already brought up that point earlier in the thread too.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: adding custom sound to a secret

Post by HaunterV »

will this work with monsters going hostile?
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: adding custom sound to a secret

Post by HaunterV »

i can get playSound("torch_burning") to work in a SE but not playSoundAt("torch_burning", 11, 9)
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
Post Reply