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
Script Help Cant see the error :S
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#13
RE: Cant see the error :S

(05-25-2013, 04:30 PM)Darkboot Wrote: okey so i fixed that thing. the enemy goes to the pathnodes now and what i want now is that i want description on the main when starting a custom story and a description for the key cause when i pick it up it stand " picked up " and no description on it

Lang file:
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">First test</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Awesomekey">Awesome Key</Entry>
<Entry Name="ItemDesc_Awesomekey">Key for an awesome door to an awesome room in an awesome level</Entry>
</CATEGORY>

And im gonna make Another key to open a closet and i wonder if i can put the script in the same Place as this;

" void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("","unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");"

or do i need to make Another

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
something
}

and so on for the other key?

For your .lang file, put <LANGUAGE> at the very start and </LANGUAGE> at the end. You also need to go to the Level Editor, click on your key, click the Entities tab then change the Name (should be the last one) to the name of your key, which in this case is "Awesomekey"

For the script, yes you'll need a separate one because you're using a different key on a different door. Just add another UseItemCallback with the new key, other door and what script to perform.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-25-2013, 04:41 PM
Find


Messages In This Thread
Cant see the error :S - by Darkboot - 05-25-2013, 01:34 PM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 01:39 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 01:45 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 01:47 PM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 01:51 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 02:07 PM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 02:14 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 02:17 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 03:37 PM
RE: Cant see the error :S - by PutraenusAlivius - 05-25-2013, 03:46 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 03:45 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 04:30 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 04:41 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 06:04 PM
RE: Cant see the error :S - by PutraenusAlivius - 05-26-2013, 02:02 AM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 06:55 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 08:04 PM
RE: Cant see the error :S - by pewds..fan - 06-01-2013, 09:04 AM
RE: Cant see the error :S - by PutraenusAlivius - 06-01-2013, 10:09 AM



Users browsing this thread: 2 Guest(s)