(10-23-2013, 08:14 PM)T122002 Wrote: You're welcome! ^^ did everything work okay?
Yeah, but I'm screwing up again. Now as I got over it, I made some other, a little more complicated things with the .hps file.. I know there are probably just small mistakes I don't notice, but when I try to load up my custom story, it says that it's unexpected ending, and here it is.. :C
----------------------------------------------------
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "react2", true, 1);
AddUseItemCallback("hammer1", "stone_hammer_1", "passage1", "impact1", false);
SetLocalVarInt("usehammer1", 1);
SetEntityPlayerInteractCallback("lantern_1", "lantern", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void break1(string &in asEntity)
{
SetMessage("Messages", "wall1", 3.0);
}
void impact1(string &in asItem, string &in asEntity)
{
if(GetLocalVarInt("usehammer1") == 1)
(
SetLocalVarInt("usehammer1", 2);
SetMessage("Messages", "Hammerfirst", 3.0);
SetEntityActive("servant_grunt_1, true);
)
else if(GetLocalVarInt("usehammer1") == 2)
(
SetEntityActive("passage1", false);
SetEntityActive("passage2", true);
PlayGuiSound("05_rock_fall.snt", 100);
CreateParticleSystemAtEntity("dust1", "ps_dust_falling_door.ps", "passage2", false);
AddTimer("dust1", 3.0, "dust1");
)
}
void dust1(string &in asTimer)
{
DestroyParticleSystem("dust1");
}
void lantern(string &in asEntity)
{
SetPlayerLampOil(25.0);
}
-----------------------
I'm pretty tired so I can't focus really the maxium, so I'm missing something I guess... Thanks if you can help again, I honestly want to get this working
![Smile Smile](https://www.frictionalgames.com/forum/images/smilies/smile.gif)
PS. the spaces aren't like that, copy & paste just failing