<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The old ancient castle of Leinch has got it's rumors. One of 'em is that the Devil is controling the castle and the other is that the Owner is crazy. Do you dare to check if they're true?.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
//Key hall2
<Entry Name="ItemDesc_keyhall2">Key to the library</Entry>
<Entry Name="ItemName_keyhall2">Library Key</Entry>
//Key office
<Entry Name="ItemName_office_key">Office key</Entry>
<Entry Name="ItemDesc_office_key">A nice key that is needed to lock and unlock the office.</Entry>
</CATEGORY>
<CATEGORY Name="Level">
<Entry name="room_prison">To the Prison</entry>
</LANGUAGE>
Any can take a look at this file and tell me if there's something wrong because my file aint loading.
At <Entry name="room_prison">To the Prison</entry>
You didn't capital the last </Entry>, and like Tan said, you didn't add the </CATEGORY> at the end.
Also, at that little area that I said above, You didn't capital the N in Name.
Try this for your script
Spoiler below!
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The old ancient castle of Leinch has got it's rumors. One of 'em is that the Devil is controling the castle and the other is that the Owner is crazy. Do you dare to check if they're true?.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
//Key hall2
<Entry Name="ItemDesc_keyhall2">Key to the library</Entry>
<Entry Name="ItemName_keyhall2">Library Key</Entry>
//Key office
<Entry Name="ItemName_office_key">Office key</Entry>
<Entry Name="ItemDesc_office_key">A nice key that is needed to lock and unlock the office.</Entry>
</CATEGORY>
<CATEGORY Name="Level">
<Entry Name="room_prison">To the Prison</Entry>
</CATEGORY>
</LANGUAGE>
(DON'T WORRY THERE IS NO REAL SPOILERS, I JUST PUT THE FILES IN SPOILER TAGS TO MAKE IT EASIER )
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 05-25-2011, 04:33 PM by RawkBandMan.)
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Look at the "Doorslam1" Function because it all of a sudden stoped working.
EDIT: And! How to make a monster patroll a specific area?.
I made some paths that the monster walks and then I need him to repeat walking some ceratin paths. Anyone knows why?.
btw XxRoCkBaNdMaNxX you're gonna be in the credits . Thanks for helping me out man!.
Dubstep <3
(This post was last modified: 05-25-2011, 04:46 PM by xtron.)
You can't activate particle effects like this:
SetEntityActive("ParticleSystem_1" , true);
You have to use area (where you want it to appear) and:
CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS); (check this at script functions wiki)
(05-25-2011, 04:49 PM)Khyrpa Wrote: You can't activate particle effects like this:
SetEntityActive("ParticleSystem_1" , true);
You have to use area (where you want it to appear) and:
CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS); (check this at script functions wiki)
I assume "door_open_hall_key" is an script area?
yea. But the thing is that it worked perfect before and then all of a sudden it stoped working.
(05-25-2011, 05:04 PM)Khyrpa Wrote: All seems to be fine with that function to me, perhaps you accidentally changed something in the level editor? like names and such
Name of script: door_open_hall_key
PlayerLookAtCallback for script: door_open_hall_key
Name of door: door_to_hall_key
CallbackFunc: door_to_hall_key
Hehe like I asked: "I assume "door_open_hall_key" is an script area?"
If collide callbacks entities are Player and the door, it only happens when you actually hit the door with your body (or it should I'm not sure)
change it to interact callback if you want it to trigger when you touch or use collide callback change the door_open_hall_key into an area where you want the player to trigger it
(05-25-2011, 05:09 PM)Khyrpa Wrote: Hehe like I asked: "I assume "door_open_hall_key" is an script area?"
If collide callbacks entities are Player and the door, it only happens when you actually hit the door with your body (or it should I'm not sure)
change it to interact callback if you want it to trigger when you touch or use collide callback change the door_open_hall_key into an area where you want the player to trigger it