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
How make this script? (SOLVED)
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#8
RE: How make this script?

This is all script file:

void OnStart()
{
AddUseItemCallback("", "key1", "door1", "UseKeyOnDoor", true);
AddEntityCollideCallback("ScriptArea", "Player", "Skrypt1", true, 1);
}

void CallbackName(string &in asParent, string &in asChild, int alState)
{
SetMessage("MessageCategory", "MessageEntry", 0);
}


void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);

SetLocalVarInt("Switch", 1);
CompleteQuest("door1", "mementos1");

}

void TouchDoor(string &in asEntity)
{
if(GetLocalVarInt("Switch") == 0)
{
AddQuest("door1", "mementos1");
}
}


And Lang (i no write my text, you know Tongue)

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description"> Description custom story </Entry>
</CATEGORY>

----------Notatki/Myśli----------
<CATEGORY Name="Journal">

<Entry Name="Note_voice_Name">Name Note</Entry>
<Entry Name="Note_voice_Text">[voice Voice1.ogg][br] Text</Entry>


<Entry Name="Quest_mementos1_Text">I must find key in bathroom.</Entry>
</CATEGORY>

----------Nazwy I Opisy Przedmiotów----------
<CATEGORY Name="Inventory">
<Entry Name="ItemName_KeyDesc"> Bathroom Key</Entry>
<Entry Name="ItemDesc_KeyDesc"> Old, dusty key. Used of peple thereof manor house.</Entry>

</CATEGORY>
<CATEGORY Name="CategoryName">
<Entry Name="EntryName">My text</Entry>
</CATEGORY>

</LANGUAGE>
02-14-2016, 08:54 PM
Find


Messages In This Thread
How make this script? (SOLVED) - by Abihishi - 02-14-2016, 06:11 PM
RE: How make this script? - by Mudbill - 02-14-2016, 07:41 PM
RE: How make this script? - by Abihishi - 02-14-2016, 07:57 PM
RE: How make this script? - by Romulator - 02-14-2016, 08:32 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:34 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:47 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:51 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:54 PM
RE: How make this script? - by Mudbill - 02-14-2016, 11:53 PM
RE: How make this script? - by Abihishi - 02-15-2016, 03:12 PM
RE: How make this script? - by Daemian - 02-16-2016, 12:46 AM
RE: How make this script? - by Spelos - 02-16-2016, 08:48 AM
RE: How make this script? - by Abihishi - 02-16-2016, 03:17 PM
RE: How make this script? - by Mudbill - 02-16-2016, 03:26 PM
RE: How make this script? - by Romulator - 02-16-2016, 03:55 PM
RE: How make this script? - by Abihishi - 02-16-2016, 04:09 PM
RE: How make this script? - by Spelos - 02-16-2016, 05:07 PM
RE: How make this script? - by Abihishi - 02-16-2016, 05:38 PM
RE: How make this script? - by Spelos - 02-16-2016, 06:15 PM
RE: How make this script? - by Abihishi - 02-16-2016, 07:44 PM
RE: How make this script? - by Mudbill - 02-16-2016, 10:09 PM



Users browsing this thread: 2 Guest(s)