Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wrong script!Why!?
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#11
RE: Wrong script!Why!?

FATAL ERROR; Could not load script file
'custom _stories/.....hps'! (my script file)
main (4,39) : ERR : Expected ';'
main (9,38) : Expected ';'
01-05-2011, 06:16 PM
Find
xiphirx Offline
Senior Member

Posts: 662
Threads: 16
Joined: Nov 2010
Reputation: 5
#12
RE: Wrong script!Why!?

void OnStart()
{
AddEntityCollideCallback("Player", "area_scare_1", "areascare1", true, 1);
PlayMusic("12_amb.ogg"***)***, true, 0.7f, 1, 0, false);
}

void OnEnter()
{
PlayMusic("12_amb.ogg"***)***, true, 0.7f, 1, 0, false);
}

void areascare1(string &in asParent , string &in asChild , int alState)
{
PlaySoundAtEntity("Player", "04_hole_squeal.snt", "candle_floor_1", 0, false);
}
void OnStart()
{
AddEntityCollideCallback("Player", "area_scare_1", "areascare1", true, 1);
PlayMusic("12_amb.ogg", true, 0.7f, 1, 0, false);
}

void OnEnter()
{
PlayMusic("12_amb.ogg", true, 0.7f, 1, 0, false);
}

void areascare1(string &in asParent , string &in asChild , int alState)
{
PlaySoundAtEntity("Player", "04_hole_squeal.snt", "candle_floor_1", 0, false);
}

Before and after *** *** denotes the changes I made. Again, you're making basic syntax mistakes. You would figure this out on your own if you took the 3 minutes to re-read your script.

01-05-2011, 06:58 PM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#13
RE: Wrong script!Why!?

Ahh Thanks!
Im an idiot! Big Grin
It works now!
01-05-2011, 07:22 PM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#14
RE: Wrong script!Why!?

My Enemy File:
void areabrute1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_9", 0, "");
PlaySoundAtEntity("Player", "react_pant.snt", "brick_pile01_2", 0, false);
}
01-05-2011, 09:25 PM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#15
RE: Wrong script!Why!?

.. And?

Again, post the error message.
01-06-2011, 03:38 PM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#16
RE: Wrong script!Why!?

How can i use keys in my scripting file?
01-06-2011, 05:01 PM
Find
ModManDann Offline
Member

Posts: 61
Threads: 6
Joined: Dec 2010
Reputation: 0
#17
RE: Wrong script!Why!?

I don't think map scripts support hooks onto direct user input. Perhaps you can find something about this on angelscript.

Current project: Mind Trap
01-06-2011, 05:29 PM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#18
RE: Wrong script!Why!?

@ModManDann Can you send me your scripting file with a key script?if you have one?and nice map^^
At the beginning i was hanging on the wall xD
01-06-2011, 07:49 PM
Find
ModManDann Offline
Member

Posts: 61
Threads: 6
Joined: Dec 2010
Reputation: 0
#19
RE: Wrong script!Why!?

What do you mean with a key script? If you mean a trigger that happens if you press a key on your keyboard, it's likely not supported by amnesia level scripting.

Edit:
I wasn't thinking clear.. You mean a key script for doors I assume.

Current project: Mind Trap
(This post was last modified: 01-06-2011, 08:22 PM by ModManDann.)
01-06-2011, 08:20 PM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#20
RE: Wrong script!Why!?

Not for my keyboard.yup,for doors.
01-06-2011, 08:51 PM
Find




Users browsing this thread: 2 Guest(s)