PDA

View Full Version : Text


ArchangelXX
January 11th, 2003, 01:44 PM
Is there a way where you can make it so when say a person enters a certain sector on the screen its says ex.Entering Refueling Bay

Amazon_Death
January 11th, 2003, 06:07 PM
This thing doesn't sound easy. This takes some to explain by a professional... http://forums.newdoom.com/UBB/frown.gif

------------------
http://www.clan-sf.com/911maps/fileupload/upload/rammstein.jpg


http://www.clan-sf.com/911maps/fileupload/upload/sven_kopf.jpg

DarkWolf
January 11th, 2003, 07:03 PM
In Legacy:

<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">code:</font><hr width="100%" size="1" noshade><pre>
script 1
while(1)
{
if (objsector(playerobj(0)) == X)
{
tip("Bob is cool");
}
wait(1);
} startscript(1);
</pre><hr width="100%" size="1" noshade></BLOCKQUOTE>

Replace X with a sector tag. So if you have a sector tagged 1, and you wanted it to print that text when he entered that sector you'd replace X with 1.

------------------
-DarkWolf
http://www.boomspeed.com/darkwolf/windeuchick.gif

Aliotroph?
January 12th, 2003, 11:58 AM
You seem to have uncovered a design weakness in FS. It should have been done with events so you wouldn't be running all kinds of while loops perpetually.

Actually you could do that:

This script is activated when the player walks across a linedef with type 274 and will only activate once. The lindef's tag has to match the script number.

<BLOCKQUOTE><font size="1" face="Trebuchet MS, Arial, Helvetica, serif">code:</font><hr width="100%" size="1" noshade><pre>
script 1
{
tip("Bob is cool.");
}
</pre><hr width="100%" size="1" noshade></BLOCKQUOTE>


BTW, there's a missing { at the top of that script DW. http://forums.newdoom.com/UBB/wink.gif

------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)

Aliotroph?.postCount++;

DarkWolf
January 12th, 2003, 12:08 PM
Yeah you could do it with just single linedefs. I assumed he meant anywhere in that sector.

------------------
-DarkWolf
http://www.boomspeed.com/darkwolf/windeuchick.gif

Aliotroph?
January 12th, 2003, 12:27 PM
well, if it was just the door sector that would be okay but if it was the room it would be a mess. If you do it with linedefs by the door you can have more control I think. If you use 272 it will happen every time.

------------------
"Once in a while a programmer really writes something he's proud of, a slick, elegant, blazingly fast routine that stands as a benchmark against which other code will be judged by. However, this is not the case with TED's fill routine. This slow, stupid algorithm will casually fill one plane of data in a painfully creeping manner. Press ESC when it gets confused." - John Romero on TED (Tile EDitor)

Aliotroph?.postCount++;

ArchangelXX
January 13th, 2003, 03:57 PM
aight thx