Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MY CAPS LOCK BUTTON BROKE
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#21
RE: MY CAPS LOCK BUTTON BROKE

void NAMETHISYOURTIMER(string &in asTimer) //Never called
{
AddTimer("", 1.1, "TimerDoorCanClose");
}

Wait, the above function IS never called.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 12-23-2013, 02:14 AM by PutraenusAlivius.)
12-23-2013, 02:13 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#22
RE: MY CAPS LOCK BUTTON BROKE

(12-23-2013, 02:11 AM)Romulator Wrote: TimerDoorCanClose() also appears twice, both seemingly do the same thing.
ok so I deleted the duplicate one, and now it's getting me a different 1 error! it's saying main (63,1): ERR: Unexpected token '{'
help anybody?
(This post was last modified: 12-23-2013, 02:16 AM by Radical Batz.)
12-23-2013, 02:15 AM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#23
RE: MY CAPS LOCK BUTTON BROKE

You need a flux capacitor.
12-23-2013, 02:16 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#24
RE: MY CAPS LOCK BUTTON BROKE

(12-23-2013, 02:16 AM)Traggey Wrote: You need a flux capacitor.

God dangit man do you want to help or not?

Spoiler below!

PHP Code: (Select All)
void PickupKey(string &in asEntitystring &in asItem)



AddQuest("quest1""TestQuest");
AddTimer(""0.5f"NeverCalledTimer"); //Change the time as long as you want

AddUseItemCallback("""MasterBedroomKey""bedroomdoor","UseMasterBedroomKey"true);

AddEntityCollideCallback("Player""AreaMemento""EventQuest"true1);

}

 

void UseMasterBedroomKey(string &in asItemstring &in asEntity)

{

SetMessage("message""message1"3);

}



void NeverCalledTimer(string &in asTimer)

{

AddTimer(""1.1f"TimerDoorStart");

}



void TimerDoorStart(string &in asTimer)



AddUseItemCallback("""Crowbar""Door""UseCrowbarOnDoor"true);

AddEntityCollideCallback("Joint""AreaBreak""BreakDoor"true1);
SetSwingDoorDisableAutoClose("Door"false);

}



 
void UseCrowbarOnDoor(string &in asItemstring &in asEntity)

{

RemoveItem(asItem);

PlaySoundAtEntity("""player_crouch.snt""Player"0.05false);

AddTimer(asEntity0.2f"TimerPlaceCrowbar");





void TimerPlaceCrowbar(string &in asTimer)

{

SetEntityActive("Joint"true);

PlaySoundAtEntity("""puzzle_place_jar.snt"asTimer0false);

}



 
void BreakDoor(string &in asParentstring &in asChildint alState)

{

SetEntityActive("Joint"false);

SetEntityActive("Broken"true);

SetSwingDoorLocked("Door"falsefalse);

SetSwingDoorClosed("Door"falsefalse);

SetSwingDoorDisableAutoClose("Door"true);

AddPropImpulse("Door"003"world");

CreateParticleSystemAtEntity("""ps_hit_wood.ps""Areaeffect"false);

PlaySoundAtEntity("""break_wood_metal""Areaeffect"0false);

GiveSanityBoostSmall();

PlayMusic("10_puzzle01.ogg"false0.70.110false);

AddTimer(""0.1f"TimerPushDoor");





void TimerPushDoor(string &in asTimer)

{

AddPropImpulse("Door", -421"world");

AddTimer(""1.1"TimerDoorCanClose");

}



 
//void touchdoor(string &in asEntity, string &in type) //Where is it called at? Ignoring it for now.

//{

//AddQuest("door", "touchdoor");

//}

void EventQuest(string &in asParentstring &in asChildint alState)

{

AddQuest("area""enterarea");




"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 12-23-2013, 02:22 AM by PutraenusAlivius.)
12-23-2013, 02:17 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#25
RE: MY CAPS LOCK BUTTON BROKE

(12-23-2013, 02:17 AM)JustAnotherPlayer Wrote:
(12-23-2013, 02:16 AM)Traggey Wrote: You need a flux capacitor.

God dangit man do you want to help or not?

Spoiler below!

PHP Code: (Select All)
void PickupKey(string &in asEntitystring &in asItem)



AddQuest("quest1""TestQuest");
AddTimer(""0.5f"NeverCalledTimer"); //Change the time as long as you want

AddUseItemCallback("""MasterBedroomKey""bedroomdoor","UseMasterBedroomKey"true);

AddEntityCollideCallback("Player""AreaMemento""EventQuest"true1);

}

 

void UseMasterBedroomKey(string &in asItemstring &in asEntity)

{

SetMessage("message""message1"3);

}



void NeverCalledTimer(string &in asTimer)

{

AddTimer(""1.1f"TimerDoorStart");

}



void TimerDoorStart(string &in asTimer)



AddUseItemCallback("""Crowbar""Door""UseCrowbarOnDoor"true);

AddEntityCollideCallback("Joint""AreaBreak""BreakDoor"true1);
SetSwingDoorDisableAutoClose("Door"false);

}



 
void UseCrowbarOnDoor(string &in asItemstring &in asEntity)

{

RemoveItem(asItem);

PlaySoundAtEntity("""player_crouch.snt""Player"0.05false);

AddTimer(asEntity0.2f"TimerPlaceCrowbar");





void TimerPlaceCrowbar(string &in asTimer)

{

SetEntityActive("Joint"true);

PlaySoundAtEntity("""puzzle_place_jar.snt"asTimer0false);

}



 
void BreakDoor(string &in asParentstring &in asChildint alState)

{

SetEntityActive("Joint"false);

SetEntityActive("Broken"true);

SetSwingDoorLocked("Door"falsefalse);

SetSwingDoorClosed("Door"falsefalse);

SetSwingDoorDisableAutoClose("Door"true);

AddPropImpulse("Door"003"world");

CreateParticleSystemAtEntity("""ps_hit_wood.ps""Areaeffect"false);

PlaySoundAtEntity("""break_wood_metal""Areaeffect"0false);

GiveSanityBoostSmall();

PlayMusic("10_puzzle01.ogg"false0.70.110false);

AddTimer(""0.1f"TimerPushDoor");





void TimerPushDoor(string &in asTimer)

{

AddPropImpulse("Door", -421"world");

AddTimer(""1.1"TimerDoorCanClose");

}



 
//void touchdoor(string &in asEntity, string &in type) //Where is it called at? Ignoring it for now.

//{

//AddQuest("door", "touchdoor");

//}

void EventQuest(string &in asParentstring &in asChildint alState)

{

AddQuest("area""enterarea");



OMG Now it works, thank you so much man, you saved my custom story, thanks everybody for helping me! but the mementos and the crowbar don't work in the game :/
(This post was last modified: 12-23-2013, 12:20 PM by Radical Batz.)
12-23-2013, 02:27 AM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#26
RE: MY CAPS LOCK BUTTON BROKE

I told you it was the capacitor.
12-23-2013, 02:28 AM
Find




Users browsing this thread: 3 Guest(s)