Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2008, 03:09 AM
Understood Understood is offline
Registered User
Join Date: Jun 2006
Location: Orlando, FL
Posts: 120
Understood is on a distinguished road
onKeyPressed..press again?

Hi, I'm creating an event called "Name that song" which has one very obvious flaw..."F3"
I was hoping that stopping the song whenever a person presses F3 would work, but the song that was playing still shows. I also tried changing the song name, but still no luck. Is there a way to basically tell the client to press a button again? So I could just close the options menu as soon as it opens, or does anyone have any other solutions?
Thanks.
PHP Code:
//#CLIENTSIDE
function onKeyPressed) {
  if ( 
== 114 ) {
    
stopmidi();
  }

Reply With Quote
  #2  
Old 09-22-2008, 03:42 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
how could changing the song name not help?
if the file name is like, sweetchildofmine.mp3, and you rename it to eventsong1.mp3, it's impossible for it to show the other name. make sure you reupload it to whatever hosting site you're using.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #3  
Old 09-22-2008, 03:48 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I would guess he wants to make it so events team members don't have to worry about renaming the files.

I wonder if it would be possible to show a GANI with a param which is the music, then in that gani have a sound for PARAM1. I don't think that's possible with URLs, unfortunately.
__________________
Reply With Quote
  #4  
Old 09-22-2008, 03:59 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
it's not that much of a hassle.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #5  
Old 09-22-2008, 04:06 AM
Understood Understood is offline
Registered User
Join Date: Jun 2006
Location: Orlando, FL
Posts: 120
Understood is on a distinguished road
The problem is that when you press F3, the options menu is called before changing the song url...so the old url is still there. Which is why I have a problem =[
Reply With Quote
  #6  
Old 09-22-2008, 04:53 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Frankie View Post
it's not that much of a hassle.
But, if an ET wants to host like 5 songs, it'll take them probably 10 minutes to get them downloaded, renamed, and uploaded.
__________________
Reply With Quote
  #7  
Old 09-22-2008, 12:45 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
Quote:
Originally Posted by Understood View Post
The problem is that when you press F3, the options menu is called before changing the song url...so the old url is still there. Which is why I have a problem =[
I don't see how you're having a problem. there is no old and new URL. there should just be one.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #8  
Old 09-22-2008, 02:20 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Just make the script compare what song the player is playing compared to a serverr. variable of the current event song?
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #9  
Old 09-22-2008, 05:01 PM
Understood Understood is offline
Registered User
Join Date: Jun 2006
Location: Orlando, FL
Posts: 120
Understood is on a distinguished road
The problem is that whenever they press F3, they see the answer. I could easily make it disqualify people who press F3, but that won't stop people from telling their friends the song name.

And @Frankie, I tested it...If I have it change the songname when they press F3, it is still being changed AFTER the options menu is brought up, so the options menu is showing the song that was playing with F3 was pressed, not the new one that it was changed to.

I guess "Name That Song" is scratched =[
Reply With Quote
  #10  
Old 09-22-2008, 05:10 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Or, you could name your mp3's to something not related to the actual song name.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #11  
Old 09-22-2008, 05:14 PM
Understood Understood is offline
Registered User
Join Date: Jun 2006
Location: Orlando, FL
Posts: 120
Understood is on a distinguished road
Quote:
Originally Posted by xXziroXx View Post
Or, you could name your mp3's to something not related to the actual song name.
Is there a way to do that if you're using URLs? This event is for Events Team members who will most-likely be using playlist.com and copying song links.
Reply With Quote
  #12  
Old 09-22-2008, 05:46 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Understood View Post
Is there a way to do that if you're using URLs? This event is for Events Team members who will most-likely be using playlist.com and copying song links.
No, not really. You'd have to host the files on your own.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #13  
Old 09-23-2008, 01:32 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
I was thinking something along the lines of using the $pref::audio variables, but apparently there isn't one to see what is currently entered in the MP3 player. I would simply go with the idea of disqualifying players when they press F3. You could place them in a "silent" level that disables PMs, but I don't think a little "Name That Song" contest is that important.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.