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
PLEEAASEE HELP?
AirmanerX Offline
Junior Member

Posts: 14
Threads: 3
Joined: May 2012
Reputation: 0
#4
RE: PLEEAASEE HELP?

(05-06-2012, 11:57 AM)Rownbear Wrote: you should read more up on scripting and maybe watch some videos on the wiki site to understand scripting more. If you just want to use a key on a door you would need a script like this

Spoiler below!

void OnStart()
{
/// use "castle_key_1" on "castle_door_1" door => calls "KeyOnDoor1"
AddUseItemCallback("", "castle_key_1", "castle_door_1", "KeyOnDoor1", true);
}

////Open Doors
void KeyOnDoor1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_door_1", false, true);
RemoveItem("castle_key_1");
PlaySoundAtEntity("", "unlock_door.snt", "castle_door_1", 0.0f, true);
}

//Entering map\\
void OnEnter()
{
}

//Leaving map\\
void OnLeave()
{
}


if you use this as your new hps and call the key for castle_key_1 and the door for castle_door_1 or change it for what you have, it should work and not crash anymore.

Now, go watch some videos Smile


Thanks
The thing is, I changed all Castle Door and Key names into my key and door names (IronKey_1) and mansion_1
Also, in my extra_english.lang file (some guy told me to do that) it says

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">This is my first try at a custom story. I have no experience at at all.[br]Please send me feedback at airmanerx@live.com.[br] http://www.youtube.com/user/AirmanerX</Entry&gt;
</CATEGORY>
<CATEGORY Name="Inventory"?
<Entry Name="ItemName_IronKey_1">Iron Key</Entry>
<Entry Name="ItemDesc_IronKey_1">Put it in THAT door. Yes, THAT one.</Entry>
</CATEGORY>
</LANGUAGE>
This is correct, right?
Sorry, i dont understand scripting at all. Its like alien science to me. If you have any videos to explain it, id watch them but probbaly not learn anything anyway.
05-06-2012, 12:19 PM
Website Find


Messages In This Thread
PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 11:45 AM
RE: PLEEAASEE HELP? - by Xanthos - 05-06-2012, 11:51 AM
RE: PLEEAASEE HELP? - by Rownbear - 05-06-2012, 11:57 AM
RE: PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 12:19 PM
RE: PLEEAASEE HELP? - by Xanthos - 05-06-2012, 12:20 PM
RE: PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 12:23 PM
RE: PLEEAASEE HELP? - by Xanthos - 05-06-2012, 12:29 PM
RE: PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 12:33 PM
RE: PLEEAASEE HELP? - by Xanthos - 05-06-2012, 12:38 PM
RE: PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 12:39 PM
RE: PLEEAASEE HELP? - by Xanthos - 05-06-2012, 12:42 PM
RE: PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 12:45 PM
RE: PLEEAASEE HELP? - by Rownbear - 05-06-2012, 12:26 PM
RE: PLEEAASEE HELP? - by Xanthos - 05-06-2012, 12:47 PM
RE: PLEEAASEE HELP? - by Rownbear - 05-06-2012, 12:53 PM
RE: PLEEAASEE HELP? - by AirmanerX - 05-06-2012, 07:17 PM



Users browsing this thread: 1 Guest(s)