This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu// room script file
int cPedoMan_speechTimer = 0;
// A helper function to simplify the job of background speech with voice
void SayBackgroundClip(this Character*, String message, AudioClip* clip)
{
this.SayBackground(message);
if(clip != null)
clip.Play();
}
function repeatedly_execute_always() {
cPedoMan_speechTimer++;
if (cPedoMan_speechTimer % 900 == 0) {
int which = cPedoMan_speechTimer / 900;
if (cPedoMan.Room != player.Room)
return; // do nothing
if (which == 1) {
cPedoMan.SayBackgroundClip("&1 DIALOG 1", aPEDO7);
cPedoMan.Animate(5, 2, eOnce, eNoBlock);
}
else if (which == 2) {
cPedoMan.SayBackgroundClip("&2 DIALOG 2", aStonethrow);
}
else if (which == 3) {
cPedoMan.SayBackgroundClip("&3 DIALOG 3", aMonstereat);
}
else if (which == 4) {
cPedoMan.SayBackgroundClip("&4 DIALOG 4", aPickuppebble);
}
else if (which == 5) {
cPedoMan.SayBackgroundClip("&5 DIALOG 5", aPEDO7);
}
else
cPedoMan_speechTimer = 0; // Loop around
}
}
AudioChannel *DanceChannel;
function room_RepExec()
{
if (DanceChannel == null || !DanceChannel.IsPlaying)
{
// start the song only when it is not playing
// NOTE: you may want to modify this condition for your needs
DanceChannel = aPEDO7.Play();
}
if (DanceChannel.IsPlaying && !cPedoMan.Animating)
{
// only start animation if the song is already playing AND man is NOT dancing
cPedoMan.LockView(4);
cPedoMan.Animate(1, 4, eRepeat, eNoBlock);
}
else if (!DanceChannel.IsPlaying && cPedoMan.View == 2)
{
// only stop animation if the song is NOT playing but man is still dancing
cPedoMan.UnlockView();
}
}
function room_RepExec()
{
AudioChannel *channel = aPEDO7.Play();
while (channel.IsPlaying) cPedoMan.Animate(5, 0);
{
function room_RepExec()
{
while (aSong01.IsPlaying)) //While song01 is playing
{
cPedoMan.Animate(5, 0); //character dances
}
function repeatedly_execute_always() {
cPedoMan_speechTimer++;
if (cPedoMan_speechTimer % 600 == 0) {
int which = cPedoMan_speechTimer / 600;
if (cPedoMan.Room != player.Room)
return; // do nothing
if (which == 1) {
cPedoMan.SayBackgroundClip("&1 Blah Blah 1", aPEDO7); //SKIPS THIS LINE
cPedoMan.SayBackgroundClip("&1 Blah Blah 2", aPEDO7); //GOES STRAIGHT TO THIS LINE FIRST
}
else if (which == 2) {
cPedoMan.SayBackgroundClip("&2 DIALOG 2", aStonethrow);
}
else if (which == 3) {
cPedoMan.SayBackgroundClip("&3 DIALOG 3", aMonstereat);
}
else if (which == 4) {
cPedoMan.SayBackgroundClip("&4 DIALOG 4", aPickuppebble);
}
else if (which == 5) {
cPedoMan.SayBackgroundClip("&5 DIALOG 5", aPEDO7);
}
else
cPedoMan_speechTimer = 0; // Loop around
}
}
function room_Load()
{
if (Game.DoOnceOnly("Some More Time Later")) {
ginvwindow.Visible = false;
gIconbar.Visible = false;
Overlay* myOverlay = Overlay.CreateGraphical(0, 0, 25, true);
Wait(120);
}
mouse.Mode = eModeWalkto;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.095 seconds with 14 queries.