Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
Custom Story Error? pls Heeelp
so this is the script for my amnesia custom story!
void OnStart()
{
setEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster"), true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
Is there something I did wrong because I keep getting an error whenever I load my custom story! saying "FATAL ERROR: Could not load script file
'custom_stories/ThereHasToBeaWayout/maps/ch01/ThereHasToBeaWayOut.hps'!
main (4,77):ERR :Expected ';'
(This post was last modified: 12-20-2013, 02:52 PM by Radical Batz.)
|
|
12-20-2013, 02:50 PM |
|
RaideX
Member
Posts: 212
Threads: 33
Joined: May 2013
Reputation:
7
|
RE: Custom Story Error? pls Heeelp
(12-20-2013, 02:50 PM)Badcat5550 Wrote: so this is the script for my amnesia custom story!
void OnStart()
{
setEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster"), true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
Is there something I did wrong because I keep getting an error whenever I load my custom story! saying "FATAL ERROR: Could not load script file
'custom_stories/ThereHasToBeaWayout/maps/ch01/ThereHasToBeaWayOut.hps'!
main (4,77):ERR :Expected ';'
You have a missplaced bracked on line 4
try replacing the line with this:
SetEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster", true);
If you don't draw first, you don't get to draw at all... -The False Shepherd
(This post was last modified: 12-20-2013, 03:47 PM by RaideX.)
|
|
12-20-2013, 03:47 PM |
|
Romulator
Not Tech Support ;-)
Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation:
195
|
RE: Custom Story Error? pls Heeelp
Firstly: Welcome to the forums!
Secondly, you have posted this in the wrong section. Please use the Development Support section next time you are having errors related to Custom Story installation or development errors.
What is wrong is your SetEntityPlayerInteractCallback syntax. It should be written as:
SetEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster", true);
What your issue is; is that you have a bracket that shouldn't be there. Otherwise, I believe it to be correct.
Edit: Was ninja'd by RaideX. Stupid iPod.
Discord: Romulator#0001
(This post was last modified: 12-20-2013, 03:56 PM by Romulator.)
|
|
12-20-2013, 03:55 PM |
|
Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
RE: Custom Story Error? pls Heeelp
Ahhh memories, I remember when I didn't know how to code, not even anything XD
I used to tell people to give me a code every single time but now because of the help of neelke, lazzer and the forums now I know how to script all by myself. Thank u neelke, lazzer and the forums, my work would be nothing without u
|
|
10-05-2014, 01:05 PM |
|
Kreekakon
Pick a god and pray!
Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation:
124
|
RE: Custom Story Error? pls Heeelp
That's great and all Badcat, but there's no need to go digging up old threads over it
-Locked
|
|
10-05-2014, 04:01 PM |
|
|