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


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

Posts: 134
Joined: Jan 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
xiphirx Offline
Senior Member

Posts: 662
Joined: Nov 2010
Reputation: 5
Post: #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 all posts by this user Quote this message in a reply
Janni1234 Offline
Member

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

Ahh Thanks!
Im an idiot! Big Grin
It works now!
01-05-2011 07:22 PM
Find all posts by this user Quote this message in a reply
Janni1234 Offline
Member

Posts: 134
Joined: Jan 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Tottel Offline
Senior Member

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

.. And?

Again, post the error message.
01-06-2011 03:38 PM
Find all posts by this user Quote this message in a reply
Janni1234 Offline
Member

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

How can i use keys in my scripting file?
01-06-2011 05:01 PM
Find all posts by this user Quote this message in a reply
ModManDann Offline
Member

Posts: 61
Joined: Dec 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Janni1234 Offline
Member

Posts: 134
Joined: Jan 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
ModManDann Offline
Member

Posts: 61
Joined: Dec 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Janni1234 Offline
Member

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

Not for my keyboard.yup,for doors.
01-06-2011 08:51 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)