Easy rule of thumb is just to always put brackets, even if you just have one command to call.
~Trent
~Trent
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
function room_RepExec()
{
cCliche.Transparency = 100;
if (IsTimerExpired(8)){
cCharacter.Say("Oh no! he is comming!");
SetViewport(600, 112);
oMetalBar1.SetView(7, 0);
oMetalBar1.Animate(0, 5, eOnce, eBlock, eForwards);
oMetalBar2.SetView(7, 0);
oMetalBar2.Animate(0, 5, eOnce, eBlock, eForwards);
oMetalBar3.SetView(7, 0);
oMetalBar3.Animate(0, 5, eOnce, eBlock, eForwards);
SetBackgroundFrame(2);
Wait(80);
cCliche.Transparency = 0;
SetBackgroundFrame(2);
cCliche.Say("Ha! Now i will take this intruder and teach him a lesson!");
cCliche.Move(629, 152);
Wait(40);
cCliche.Move(627, 173);
cCliche.FaceLocation(527, 188);
int PlayerX = cCharacter.x;
int PlayerY = cCharacter.y;
cCliche.Walk(PlayerX, PlayerY);
ReleaseViewport();
}
if (SecSystem == false){
SetBackgroundFrame(0);
}
else {
SetBackgroundFrame(1);
oMetalBar1.Visible = true;
oMetalBar2.Visible = true;
oMetalBar3.Visible = true;
oDoorLeft.Visible = true;
oDoorRight.Visible = true;
}
}
function hHotspot1_Interact()
{
int RandomInteract=Random(2);
if (RandomInteract==0){
dRandomInteract1.Start();
}
if (RandomInteract==1){
dRandomInteract2.Start();
}
else {
dRandomInteract3.Start();
}
}
GUI *theGui = GUI.GetAtScreenXY(mouse.x, mouse.y);
if (theGui == gAction) {
TC=0;
}
else {
TC=1;
}
function hGuard_Talk() {
if (myCounter1 == 0) {
dGuard.Start();
}
else if (myCounter1 >= 1) {
dGuardc.Start();
}
}
function hGuard_Talk()
{
if (myCounter1 == 0)
{
dGuard.Start();
}
else if (myCounter1 >= 1)
{
dGuardc.Start();
}
}
function hGuard_Talk()
{
if (myCounter1 == 0) dGuard.Start();
else if (myCounter1 >= 1) dGuardc.Start();
}
cGirlfriend.FollowCharacter(player, 10, 50)
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.191 seconds with 14 queries.