Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Logan MTM

Legacy scripting question (also in Portuguese)

Recommended Posts

Sou brasileiro e se vocês não estão entendendo nada,
isto prova a solidão que sinto.
What the correct script to change music in Legacy
{
changemusic(?????????);
}

Thanks !!!!

Share this post


Link to post

Heh, Legay...

Try idmus(level number), like idmus02 will play map02's music. Not in the console; just type it while in the game. There might be a console command as well, of course.

Share this post


Link to post

  • void changemusic(string musname)

    This function changes the currently playing music to the music lump "musname." As with sounds, this may be a new lump, but it must exist and must start with "D_". Passing the string "-" to this function will cause the music to stop without any new song starting.
//example
{
changemusic("RUNNIN");
}

Share this post


Link to post

include("things.h");

mobj bob = spawn(MANCUBUS, x, y, angle, z);

script 1
{
while(1)
 {
 if(objhealth(bob) < x)
  {
  movefloor(tag, dest, [speed]);
  }
 wait(2);
 }
}

startscript(1);

Share this post


Link to post

What is problem in this script

{
closedoor(3);
while(1)
{
//check to see if thing numbers 10, 11, and 12 are dead
if((objdead(10)) && (objdead(11)) && (objdead(12)))
{
//open door tag 3 when all of above things are dead
opendoor(3);
break();
}wait(1);
}
}startscript(2)

Share this post


Link to post

You have to find that out yourself. If the script errors out (the player scream sound will play), open the console and it will tell you which line and arguement your script is failing on.

Share this post


Link to post

Yeah, we can't help you much if you fuck up your own syntax

if (objdead(10) && objdead(11) && objdead(12))

Share this post


Link to post

I don't make this script...
But, i are not expert in FS...
Look that script. I creat for my first Legacy WAD...

script 9
// Surpresa...
{
// tranca o salão
moveceil(100, 0, 8);
wait(100);
// reduz as luzes
lightlevel(47, 120);
lightlevel(48, 120);
lightlevel(49, 120);
wait(10);
lightlevel(47, 115);
lightlevel(48, 115);
lightlevel(49, 115);
wait(10);
lightlevel(47, 110);
lightlevel(48, 110);
lightlevel(49, 110);
wait(10);
lightlevel(47, 105);
lightlevel(48, 105);
lightlevel(49, 105);
wait(10);
lightlevel(47, 100);
lightlevel(48, 100);
lightlevel(49, 100);
wait(10);
lightlevel(47, 95);
lightlevel(48, 95);
lightlevel(49, 95);
wait(10);
lightlevel(47, 90);
lightlevel(48, 90);
lightlevel(49, 90);
wait(10);
// abaixa as estátuas
lightlevel(48, 150);
lightlevel(49, 150);
movefloor(48, 0, 3,);
movefloor(49, 0, 3,);
// som
startsound(trigger, "KEENPN");
wait(700);
// abre o salão
moveceil(100, 100, 8,);
// remove as estátuas
removeobj(17);
removeobj(18);
wait(3);
// teleporta os macumbeiros
startsound(trigger, "VILSIT");
silentteleport(19, 48);
silentteleport(20, 49);
lightlevel(47, 130);
lightlevel(48, 130);
lightlevel(49, 130);
// Hell Knights...
silentteleport(6442, 19);
silentteleport(6443, 78);
silentteleport(6444, 79);
}


Thanks...

Share this post


Link to post

THANKs IORI !!!!
I can do it...

script 221
// Thanks for your help IORI...
{
silentteleport(thing number, sector tag);
{
while(1)
{
if(objhealth(thing number) <= 0)
{
moveceil(tag number, height, speed,);
}
wait(1);
}
}
}

THANKs one more time !!!!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×