when i try to run my custom story this message appear
fatal error:could not load script file
custom stories/priest/maps/ch00/third test.hps'!
main (1, 1):unexpected token'('
Post the script file third test.hps inside [code] tags.
(07-25-2011, 08:15 PM)Roenlond Wrote: [ -> ]Post the script file third test.hps inside [code] tags.
that the script i tri to run in the beginin its suppose to make the guy start uncouncious well
http://www.mediafire.com/?f8wn3jxbze7ygz3
There were some weird stuff in your .hps file, but anyhow, I removed it and fixed it up a bit.
Here is the script:
Code:
void OnStart()
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 7.0f, "beginStory");
}
void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0, 1);
}
Try this script:
// Run when entering map
void OnEnter()
{
FadeOut(0.0);
FadeIn(5.0);
SetPlayerActive(false);
SetPlayerCrouching(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
AddTimer("", 7.0, "beginStory");
}
////////////////////////////
// Actual functions
{
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0, 1);
}