Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, kzhao), 901 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
help! stupid code problem!!! #8972
05/07/02 07:24
05/07/02 07:24
Joined: Apr 2002
Posts: 1,867
N
Neuro Offline OP
Serious User
Neuro  Offline OP
Serious User
N

Joined: Apr 2002
Posts: 1,867
Hello all, I got a little problem with this code here :

string score," ";
var playerpoint=0;
function addpoint()
{
playerpoint+=1;
str_for_num(score,playerpoint ); // convert to string
msg_show(score,2);
// PLAY_SOUND ammo_fetch,0; // turn off stupid sound!!!!!
}

action item1
{
my.push = -1;
my.enable_push = on;
my.skill1=1;
my.event = addpoint;
}

its simple enough so that when ever you run over another entity, you get some points. but my problem is that it always plays this stupid annoying sound when ever i run over the entity. anyone know how i would turn it off?? is there another way to do this code?? please help..

thanks
neuro


The Wii Effect - a look at Nintendo's epidemic
Re: help! stupid code problem!!! #8973
05/07/02 10:00
05/07/02 10:00
Joined: Jan 2002
Posts: 644
USA
tesanders Offline
Developer
tesanders  Offline
Developer

Joined: Jan 2002
Posts: 644
USA
I think you might be looking for snd_play() in msg_show() in messages.wdl. The original looks something like this:

> snd_play(msg_sound, 100, 0);

As was pointed out in another thread, you might want to leave the template scripts alone. But in this case, it probably wouldn't hurt to turn that sucker down from 100 to 0.

=thomas


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1