home *** CD-ROM | disk | FTP | other *** search
- symbols
- message startup
- message pulse
- message converse
-
- thing ronto
-
- sound walkgrunt=00tRonto01.wav
- sound talkgrunt0=00tRonto02.wav
- sound talkgrunt1=00tRonto03.wav
-
- int conversationactive=0 local
-
-
- end
-
- code
- startup:
- setpulse(3);
- return;
-
-
- pulse:
- if (rand()>0.75) {
- playsoundthing(walkgrunt, ronto, 1.0, -1, -1, 0);
- }
- return;
-
- converse:
- responseID=dwGetplayerresponse();
- if (responseid==0&&!ConversationActive) {
- conversationactive=1;
- if (rand()>0.5) playsoundthing(talkgrunt0, ronto, 1.0, -1, -1, 0);
- else playsoundthing(talkgrunt1, ronto, 1.0, -1, -1, 0);
- conversationactive=0;
- }
-
- return;
-
-
- end
-
-
-
-
-
-