home *** CD-ROM | disk | FTP | other *** search
- #
- # b0_mazeDroid.cog
- #
- # CommuniCog for the Droid in the Dark Maze.
- #
- # Desc:
- # He's a droid, yes, and he's a talkin' like a [insert talky thing here]
- #
- # 12/23/97 DGS Created.
- #-----------------------------------------------------------------------------
-
- symbols
- message startup
- message user1
- message activated
-
- thing door
- surface switch linkid=5
-
- int Met=0 local
- int Joke=0 local
- int spoken_1=0 local
- int gears=0 local
- int ConversationActive=0 local
- int gonkcurframe=0 local
- int ResponseID local
- int bye=0 local
- int turnoff=0 local
- int password=0 local
- int shot=1 local
- flex wait_time=1.3 local
- end
-
-
- code
- startup:
- SetSectorLight(getthingsector(door), 0.5, 0.0); // add some light to door sector
- return;
-
- user1:
- password = 2;
- return;
-
- activated:
- print("Activated");
- // Used for activing the door that leads to the end of the level.
- if (getsenderid()==5)
- {
- if (password == 2)
- {
- setwallcel(switch,1);
- movetoframe(door,1,4);
- }
- else
- {
- dwPlayCammySpeech(12102, "M1ca036.wav", 10, 0);
- }
- }
- //else call injected;
- return;
- end
-
-
-