Thanks for all your replies guys

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
{ // SHOOT cspit distance in these rooms = 140
if ((keycode == eKeySpace)&& player.Room==1 || player.Room==2 || player.Room==3 || player.Room==4)
{
ginfo.Visible=false;
cEgo.LockView(5);
cEgo.Animate(0, 3, eOnce, eBlock);
cEgo.UnlockView();
Wait(60);
Spit=(Spit -1);
cspit.FollowCharacter(null);
cspit.Transparency=0;
cspit.Move(cspit.x + 0, cspit.y - 140, eBlock, eAnywhere);
cspit.Transparency=100;
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
cspit.Move(cspit.x + 0, cspit.y + 140, eNoBlock, eAnywhere);
}
// SHOOT cspit distance in these rooms = 190
else if ((keycode == eKeySpace)&& player.Room==6)
{
ginfo.Visible=false;
cEgo.LockView(5);
cEgo.Animate(0, 3, eOnce, eBlock);
cEgo.UnlockView();
Wait(60);
Spit=(Spit -1);
cspit.FollowCharacter(null);
cspit.Transparency=0;
cspit.Move(cspit.x + 0, cspit.y - 190, eBlock, eAnywhere);
cspit.Transparency=100;
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
cspit.Move(cspit.x + 0, cspit.y + 190, eNoBlock, eAnywhere);
}
if (cspit.PPCollidesWithO(obottle1))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[11].Visible=true;
object[0].SetView(7, 0);
object[0].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
if (Game.DoOnceOnly("bottle1a"))
{
Points=(Points +1);
}}
if (cspit.PPCollidesWithO(obottle1))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[11].Visible=true;
if (Game.DoOnceOnly("bottle1")) // does not work
Points=(Points +1);
object[0].SetView(7, 0);
object[0].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
}
[/coder]
function room_RepExec()
{
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
if(object[11].Visible)
if (Game.DoOnceOnly("bottle1b"))
{
Points=(Points +1);
}
if(object[12].Visible)
if (Game.DoOnceOnly("bottle2b"))
{
Points=(Points +1);
}
if(object[13].Visible)
if (Game.DoOnceOnly("bottle3b"))
{
Points=(Points +1);
}
if(object[14].Visible)
if (Game.DoOnceOnly("bottle4b"))
{
Points=(Points +1);
}
if(object[15].Visible)
if (Game.DoOnceOnly("bottle5b"))
{
Points=(Points +1);
}
if (cspit.PPCollidesWithO(obottle1))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[11].Visible=true;
object[0].SetView(7, 0);
object[0].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
}
if (cspit.PPCollidesWithO(obottle2))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[12].Visible=true;
object[1].SetView(7, 0);
object[1].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
}
if (cspit.PPCollidesWithO(obottle3))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[13].Visible=true;
object[2].SetView(7, 0);
object[2].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
}
if (cspit.PPCollidesWithO(obottle4))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[14].Visible=true;
object[3].SetView(7, 0);
object[3].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
}
if (cspit.PPCollidesWithO(obottle5))
{
aBOTTLE_SMASH3.Play();
aCheer.Play();
object[15].Visible=true;
object[4].SetView(7, 0);
object[4].Animate(0, 4, eRepeat, eNoBlock);
cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
}
if (Spit == 0 && Points < 9)
{
aRound2.Play();
cEgo.Say("I need to produce more spit!");
object[0].Move(200, 92, -1, eNoBlock, eAnywhere);
object[1].Move(200, 92, -1, eNoBlock, eAnywhere);
object[2].Move(200, 92, -1, eNoBlock, eAnywhere);
object[3].Move(200, 92, -1, eNoBlock, eAnywhere);
object[4].Move(200, 92, -1, eNoBlock, eAnywhere);
object[16].SetView(8, 0);
object[16].Animate(0, 4, eRepeat, eNoBlock);
object[16].Move(185, 110, 2, eBlock);
object[15].Visible=false;
object[16].Move(173, 110, 2, eBlock);
object[14].Visible=false;
object[16].Move(153, 110, 2, eBlock);
object[13].Visible=false;
object[16].Move(134, 110, 2, eBlock);
object[12].Visible=false;
object[16].Move(117, 110, 2, eBlock);
object[11].Visible=false;
object[16].Move(20, 97, 2, eBlock, eAnywhere);
SetNextScreenTransition(eTransitionInstant);
cspit.ChangeRoom(4);
cEgo.ChangeRoom(4);
}
if (cspit.PPCollidesWithO(oback))
{
int ran=Random(2);
if (ran == 0)
{
aComeoneddie.Play();
aBoo.Play();
}
else if (ran == 1)
{
aNochance.Play();
aBoo.Play();
}
else if (ran == 2)
{
aRouting.Play();
aBoo.Play();
}
else if (ran == 3)
{
aNochanceagainst.Play();
aBoo.Play();
}}
function on_mouse_click(MouseButton button) {
if (button == eMouseLeft) {
// Walk-to script
ProcessClick(mouse.x,mouse.y,eModeWalkTo);
}
else if (button == eMouseRight) {
// Activate script
ProcessClick(mouse.x,mouse.y,eModeInteract);
}
}
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.099 seconds with 14 queries.