Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → i need a certain cog
i need a certain cog
2001-11-21, 8:24 AM #1
i need a cog that will send an elevator to 3 different floor levels, useing 12 switches and comes to frame whenever a player walks into 5 certain sectors, thanks!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-21, 8:47 AM #2
Your going to need to define it a little more than that..

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-21, 11:38 AM #3
ok, i need an elevator cog that uses 12 switches, can go to 5 different frames, and comes to a frame when a player enters the bottom sector. Thanks!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-21, 11:39 AM #4
I just said the same thing twice, sorry. What else do you need to know to write the cog?

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-21, 12:00 PM #5
Explain the switches, how many per floor, ect.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-21, 2:09 PM #6
Nevermind, dont explain the switches. You can configure this to any switch/floor combination you want. [http://www.plauder-smilies.com/spiny.gif]


 
Code:

# 11/2001 GBK

Symbols
Message Startup
Message Activated
Message Arrived
Message Entered
Thing Player				Local
Thing Elev
Flex Movespeed=4.0
Sector Bottom_sector
Int Bottom_frame
Surface Switch0
Surface Switch1
Surface Switch2
Surface Switch3
Surface Switch4
Surface Switch5
Surface Switch6
Surface Switch7
Surface Switch8
Surface Switch9
Surface Switch10
Surface Switch11
Int Frame0
Int Frame1
Int Frame2
Int Frame3
Int Frame4
Int Frame5
Int Frame6
Int Frame7
Int Frame8
Int Frame9
Int Frame10
Int Frame11
Sound Beep
Int I=0					Local
Int I2=0					Local
End
Code
Startup: Player = Getlocalplayerthing();
Stop;
Activated: For(I=0;I<=11;I=I+1) {
If(Getsenderref() == Switch0) {
Movetoframe(Elev, Frame0, Movespeed);
Playsoundpos(Sound, Getsurfacecenter(Switch0), 1,0, -1, 4, 0);
For(I2=0;I2<=11;I2=I2+1) { Setwallcel(Switch0[I2], 1); } } }
Stop;
Arrived: If(Getsenderef() == Elev) {
For(I=0;I<=11;I=I+1) { Setwallcel(Switch0, 1); } }
Stop;
Entered: If(Getthingsector(Player) == Bottom_sector) {  
Movetoframe(Elev, Bottom_frame, Movespeed); }
Stop;
End




 


I didnt test it, but it should work. [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-22, 7:31 PM #7
ok heres what I need. there are 5 stop points for the elevator. on the bottom floor, I need the elevator to crush the player if they enter the bottom sector while the elevator is not there (come down really fast on top of the player). There is 1 switch that should bring the elevator to frame zero. on the second floor, there are 2 switches that should bring the elevator to the same frame (frame one). on the third floor there are 3 switches that should bring the elevator to frame two. on the fourth floor the is 2 switches that should bring the elevator to frame three. I haven't made floor 5 yet, but it will have 1 switch that will bring the elevator to frame four. when the player walks on to it from the bottom, it should go to the top (frame 4) not stoping on the way up. it should only stop on the way up if it is called by the player to that floor level. anything else? Thanks!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-22, 7:33 PM #8
and it waits 5 seconds upon stop at any level exept the bottom one where it stayes until called to a floor level. Thanks again!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-23, 1:07 AM #9
He already did it.
2001-11-23, 10:55 AM #10
ok it worked fine, but when you press the button the first time, all the switches stay in the active mode. other wise it works fine. Thanks!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-23, 11:14 AM #11
Ooops, my mistake. [http://forums.massassi.net/html/frown.gif]

 
Code:

# 11/2001 GBK

Symbols
Message Startup
Message Activated
Message Arrived
Message Entered
Thing Player				Local
Thing Elev
Flex Movespeed=4.0
Sector Bottom_sector
Int Bottom_frame
Surface Switch0
Surface Switch1
Surface Switch2
Surface Switch3
Surface Switch4
Surface Switch5
Surface Switch6
Surface Switch7
Surface Switch8
Surface Switch9
Surface Switch10
Surface Switch11
Int Frame0
Int Frame1
Int Frame2
Int Frame3
Int Frame4
Int Frame5
Int Frame6
Int Frame7
Int Frame8
Int Frame9
Int Frame10
Int Frame11
Sound Beep
Int I=0					Local
Int I2=0					Local
End
Code
Startup: Player = Getlocalplayerthing();
Stop;
Activated: For(I=0;I<=11;I=I+1) {
If(Getsenderref() == Switch0) {
Movetoframe(Elev, Frame0, Movespeed);
Playsoundpos(Sound, Getsurfacecenter(Switch0), 1,0, -1, 4, 0);
For(I2=0;I2<=11;I2=I2+1) { Setwallcel(Switch0[I2], 1); } } }
Stop;
Arrived: If(Getsenderef() == Elev) {
For(I=0;I<=11;I=I+1) { Setwallcel(Switch0, 0); } }
Stop;
Entered: If(Getthingsector(Player) == Bottom_sector) {  
Movetoframe(Elev, Bottom_frame, Movespeed); }
Stop;
End







------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-23, 1:03 PM #12
ok, thanks! i need one more thing. i need it to have 16 switches and frames. Thanks!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-23, 1:24 PM #13
make that 18 switches and frames. Thanks!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-23, 1:46 PM #14
DEAR GOD! IT NEVER ENDS!


 


Just kidding. This should do the trick... [http://www.plauder-smilies.com/spiny.gif]

 
Code:
# 11/2001 GBK
Symbols
Message Startup
Message Activated
Message Arrived
Message Entered
Thing Player				Local
Thing Elev
Flex Movespeed=4.0
Sector Bottom_sector
Int Bottom_frame
Surface Switch0
Surface Switch1
Surface Switch2
Surface Switch3
Surface Switch4
Surface Switch5
Surface Switch6
Surface Switch7
Surface Switch8
Surface Switch9
Surface Switch10
Surface Switch11
Surface Switch12
Surface Switch13
Surface Switch14
Surface Switch15
Surface Switch16
Surface Switch17
Int Frame0
Int Frame1
Int Frame2
Int Frame3
Int Frame4
Int Frame5
Int Frame6
Int Frame7
Int Frame8
Int Frame9
Int Frame10
Int Frame11
Int Frame12
Int Frame13
Int Frame14
Int Frame15
Int Frame16
Int Frame17
Sound Beep
Int I=0					Local
Int I2=0					Local
End
Code
Startup: Player = Getlocalplayerthing();
Stop;
Activated: For(I=0;I<=17;I=I+1) {
If(Getsenderref() == Switch0) {
Movetoframe(Elev, Frame0, Movespeed);
Playsoundpos(Sound, Getsurfacecenter(Switch0), 1,0, -1, 4, 0);
For(I2=0;I2<=17;I2=I2+1) { Setwallcel(Switch0[I2], 1); } } }
Stop;
Arrived: If(Getsenderef() == Elev) {
For(I=0;I<=17;I=I+1) { Setwallcel(Switch0, 0); } }
Stop;
Entered: If(Getthingsector(Player) == Bottom_sector) {  
Movetoframe(Elev, Bottom_frame, Movespeed); }
Stop;
End


------------------
Success is the inverse relationship between effort, gain, and loss.

[This message has been edited by GBK (edited November 23, 2001).]
And when the moment is right, I'm gonna fly a kite.
2001-11-23, 2:40 PM #15
THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-25, 2:36 PM #16
Ok, sorry to tell you this, but the switches still stay on, even when the elevator has reached it's destination.

------------------
Today is a good day to die...
I find your lack of pants disturbing...
2001-11-25, 3:07 PM #17
I am so ashamed... [http://forums.massassi.net/html/frown.gif]

Code:
# 11/2001 GBK
Symbols
Message Startup
Message Activated
Message Arrived
Message Entered
Thing Player Local
Thing Elev
Flex Movespeed=4.0
Sector Bottom_sector
Int Bottom_frame
Surface Switch0
Surface Switch1
Surface Switch2
Surface Switch3
Surface Switch4
Surface Switch5
Surface Switch6
Surface Switch7
Surface Switch8
Surface Switch9
Surface Switch10
Surface Switch11
Surface Switch12
Surface Switch13
Surface Switch14
Surface Switch15
Surface Switch16
Surface Switch17
Int Frame0
Int Frame1
Int Frame2
Int Frame3
Int Frame4
Int Frame5
Int Frame6
Int Frame7
Int Frame8
Int Frame9
Int Frame10
Int Frame11
Int Frame12
Int Frame13
Int Frame14
Int Frame15
Int Frame16
Int Frame17
Sound Beep
Int I=0 Local
Int I2=0 Local
End
Code
Startup: Player = Getlocalplayerthing();
Stop;
Activated: For(I=0;I<=17;I=I+1) {
If(Getsenderref() == Switch0) {
Movetoframe(Elev, Frame0, Movespeed);
Playsoundpos(Beep, Getsurfacecenter(Switch0), 1.0, -1, 4, 0);
For(I2=0;I2<=17;I2=I2+1) { Setwallcel(Switch0[I2], 1); } } }
Stop;
Arrived:
If(Getsenderref() == Elev) {
For(I=0;I<=17;I=I+1) { Setwallcel(Switch0, 0); } }
Stop;
Entered: If(Getthingsector(Player) == Bottom_sector) { 
Movetoframe(Elev, Bottom_frame, Movespeed); }
Stop;
End



It works. I tested it.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-25, 4:16 PM #18
Oh shoot wait in needs to have 20 switches and frames.


Just kidding [http://forums.massassi.net/html/wink.gif]

↑ Up to the top!