Scroll texture script

Discuss all aspects related to modding Zandronum here.
Post Reply
Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

Scroll texture script

#1

Post by Flaminglacier » Fri Jun 13, 2014 9:02 pm

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?
Image

User avatar
Guardsoul
Forum Regular
Posts: 495
Joined: Wed Jun 06, 2012 6:09 pm
Location: Creating the world

RE: Scroll texture script

#2

Post by Guardsoul » Fri Jun 13, 2014 9:20 pm

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
}
I dont care about how bad your maps are. Everything can be improved.
Banned for cheating at DoomBuilder.

Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

RE: Scroll texture script

#3

Post by Flaminglacier » Fri Jun 13, 2014 9:35 pm

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);
}
Image

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Scroll texture script

#4

Post by IdeIdoom » Fri Jun 13, 2014 9:43 pm

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.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

RE: Scroll texture script

#5

Post by Flaminglacier » Fri Jun 13, 2014 9:47 pm

Newbie question here but how can I give a line a tag in DB2 without using the 121 action?
Image

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Scroll texture script

#6

Post by Klofkac » Fri Jun 13, 2014 9:48 pm

You can use UDMF line tag, in hexen format you have no other choice.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

RE: Scroll texture script

#7

Post by Flaminglacier » Fri Jun 13, 2014 9:56 pm

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?
Image

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Scroll texture script

#8

Post by Klofkac » Fri Jun 13, 2014 10:41 pm

There is an ACS command for line scrolling, actually.
http://zdoom.org/wiki/Scroll_Texture_Up
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Scroll texture script

#9

Post by Vincent(PDP) » Fri Jun 13, 2014 10:50 pm

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
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Flaminglacier
 
Posts: 65
Joined: Thu Jun 21, 2012 9:28 pm

RE: Scroll texture script

#10

Post by Flaminglacier » Sat Jun 14, 2014 4:50 am

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.
Image

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Scroll texture script

#11

Post by IdeIdoom » Sat Jun 14, 2014 8:38 am

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.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

Post Reply