Any ideas?
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 0);
AddUseItemCallback("", "waterdoorkey", "waterdoor", "UsedKeyOnDoor", true);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alstate)
{
SetSwingDoorClosed("RoomTwoDoor", true, true);
GiveSanityDamage(90 , true);
PlayGuiSound("react_past", 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity);
{
SetSwingDoorLocked("waterdoorkey, false, true);
PlaySoundAtEntity("", "unlock_door", "waterdoor", 0, false);
RemoveItem("waterdoorkey");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
I see unwanted space here;
GiveSanityDamage(90 , true);
Could you be more specific with your error? What does it exactly say?
Also this line.
PlayGuiSound("react_past", 1);
I belive it should be like this:
PlayGuiSound("react_pant.snt", 1);
(04-26-2012, 06:25 PM)TeamSD Wrote: [ -> ]I see unwanted space here;
GiveSanityDamage(90 , true);
Could you be more specific with your error? What does it exactly say?
Also this line.
PlayGuiSound("react_past", 1);
I belive it should be like this:
PlayGuiSound("react_pant.snt", 1);
It says
FATAL ERROR : Could not load script file 'custom_stories/Awakening 0.1/,aps/01_basement.hps '! Main (17, 1) : ERR Unexpected token '{'
(04-26-2012, 06:32 PM)Manbearpig116 Wrote: [ -> ] (04-26-2012, 06:25 PM)TeamSD Wrote: [ -> ]I see unwanted space here;
GiveSanityDamage(90 , true);
Could you be more specific with your error? What does it exactly say?
Also this line.
PlayGuiSound("react_past", 1);
I belive it should be like this:
PlayGuiSound("react_pant.snt", 1);
It says
FATAL ERROR : Could not load script file 'custom_stories/Awakening 0.1/,aps/01_basement.hps '! Main (17, 1) : ERR Unexpected token '{'
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
; <---
this is wrong I belive. Erase ;
{
SetSwingDoorLocked("waterdoorkey, false, true);
PlaySoundAtEntity("", "unlock_door", "waterdoor", 0, false);
RemoveItem("waterdoorkey");
}
Hope it works :)
Prelauncher, you have sharp eyes
SetSwingDoorLocked("waterdoorkey, false, true);
make that: SetSwingDoorLocked("waterdoorkey", false, true);
Main (17, 1) tells you on what line the problem is located
Okay now it's telling me that the error is located at 37,2 but I have no idea what to do with it
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 0);
AddUseItemCallback("", "waterdoorkey", "waterdoor", "UsedKeyOnDoor", true);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alstate)
{
SetSwingDoorClosed("RoomTwoDoor", true, true);
GiveSanityDamage(90 , true);
PlayGuiSound("react_pant.snt", 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("waterdoorkey", false, true);
PlaySoundAtEntity("", "unlock_door", "waterdoor", 0, false);
RemoveItem("waterdoorkey");
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("waterdoorkey", false, true);
PlaySoundAtEntity("", "unlock_door", "waterdoor", 0, false);
RemoveItem("waterdoorkey");
}