Page 1 of 1

Scroll texture script

Posted: Fri Jun 13, 2014 9:02 pm
by Flaminglacier
So I can't seem to find a way to get this simple idea to work. All I need is a script that will scroll a texture up (at lineid 20) then after another script is activated stop the line from scrolling. I am making an invasion map and I wish to have a texture constantly scrolling until wave 3, which is when the texture will stop scrolling but I can't seem to find a way to give a line an ID while giving it a scroll up special. Any ideas how to get this to work?

RE: Scroll texture script

Posted: Fri Jun 13, 2014 9:20 pm
by Guardsoul
Try with this:

Code: Select all

Script xx (void)
{
   SetLineSpecial(20,102,<speed>,0,0); //Start the scrolling in line with id 20
}

Script xx (void)
{
   SetLineSpecial(20,0,0,0,0); //Stop the scrolling
}

RE: Scroll texture script

Posted: Fri Jun 13, 2014 9:35 pm
by Flaminglacier
Hmmm doesn't seem to work. Maybe I am giving the line an ID the wrong way? In doombuilder I give the line action 121 (lineid) and give arg1 20 (id). I think it might have to do with the line only being allowed to have 1 special?

this is my script anyways:

Code: Select all

script 1 open
{
SetLineSpecial (20, 102, 90, 0, 0);
delay(100);
HudMessagebold(s:"Now we just have to wait till we reach the storage facility...";
		HUDMSG_PLAIN, 0, CR_GREY, 0.5, 0.4, 5.0);
    delay(120);
}

Script 53 (void) // Wave 3
{
SetLineSpecial (20, 0, 0, 0, 0);
HudMessagebold(s:"Shit the elevators stopped!";
		HUDMSG_PLAIN, 0, CR_GREY, 0.5, 0.4, 5.0);
Delay(120);
}

RE: Scroll texture script

Posted: Fri Jun 13, 2014 9:43 pm
by IdeIdoom
No, you need to just give it a tag of 20 and then it will be fixed by itself. No action involved with said lines, only in script. But you need linedef action 80 with arg1 to script number to activate (void) scripts.

RE: Scroll texture script

Posted: Fri Jun 13, 2014 9:47 pm
by Flaminglacier
Newbie question here but how can I give a line a tag in DB2 without using the 121 action?

RE: Scroll texture script

Posted: Fri Jun 13, 2014 9:48 pm
by Klofkac
You can use UDMF line tag, in hexen format you have no other choice.

RE: Scroll texture script

Posted: Fri Jun 13, 2014 9:56 pm
by Flaminglacier
Well my whole project is in hexen format and I have no experience whatsoever in UDMF so I guess I'll have to find another way... Any ideas on how I can make the illusion of a texture rising? I'm making an elevator map where the elevator stops moving after a certain wave. Maybe Have a floor constantly rising slowly until the wave is reached? Giving the illusion that the texturing is scrolling up when actually it is the lower texturing rising higher and higher?

RE: Scroll texture script

Posted: Fri Jun 13, 2014 10:41 pm
by Klofkac
There is an ACS command for line scrolling, actually.
http://zdoom.org/wiki/Scroll_Texture_Up

RE: Scroll texture script

Posted: Fri Jun 13, 2014 10:50 pm
by Vincent(PDP)
Klofkac wrote: There is an ACS command for line scrolling, actually.
http://zdoom.org/wiki/Scroll_Texture_Up
Nou, I was just about to post that. ;D

RE: Scroll texture script

Posted: Sat Jun 14, 2014 4:50 am
by Flaminglacier
Thanks guys but I that script only works if someone activates the script press pressing/shooting/ or using the line. I want the script to start when the map starts. I figured out a way around my scripting problem though so I've solved my problem. Thanks for all the input.

RE: Scroll texture script

Posted: Sat Jun 14, 2014 8:38 am
by IdeIdoom
Klofkac wrote: You can use UDMF line tag, in hexen format you have no other choice.
This is why I prefer UDMF in general. It has so much mobility and flexibility.
I tried doing a map in Doom in Hexen and it went wrong.