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
Script is just... broken?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#11
RE: Script is just... broken?

This is crap... the scripting functions must not be complete or it's just that this game doesn't let you do it.

10-16-2010, 03:48 PM
Find
Entih Offline
Junior Member

Posts: 47
Threads: 4
Joined: Sep 2010
Reputation: 0
#12
RE: Script is just... broken?

Eh? I just used the diary page pickup callback myself, it works perfectly fine (aside from the fact that it triggers and never opens the diary in journal automatically, not quite sure how Amnesia worked that).

Can't get angry every time the game doesn't let you do something specific, because that will happen a lot.
10-16-2010, 05:58 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#13
RE: Script is just... broken?

It's okay, I found a thing that goes around it... I just made an area right around the note so then it gets triggered when you collide with it...

BUT WAIT! Wouldn't it work if I set it when the note leaves the collide area, it causes the stuff to happen? Smile

10-17-2010, 01:40 AM
Find
Entih Offline
Junior Member

Posts: 47
Threads: 4
Joined: Sep 2010
Reputation: 0
#14
RE: Script is just... broken?

Alright, now you're thinking in terms of scripting! That should actually work, but you'd have to make sure the note was physics-static so it wouldn't move when bumped, and when you add the callback, the last parameter would either be 0 (check for entering and exiting both) or -1 (check only for exit) (that is, if I recall properly the function's callback add).

I did not even think of that.
10-17-2010, 01:43 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#15
RE: Script is just... broken?

Nope... didn't work for -1. I'll try 0.

Edit: 0 obviously didn't work.

10-17-2010, 01:58 AM
Find
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#16
RE: Script is just... broken?

Try moving "SetPlayerLampOil(0);" into the OnEnter() area. It works for me and that's where it is.

Er, never mind, didn't read the previous posts thoroughly enough. <.<
10-17-2010, 02:04 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#17
RE: Script is just... broken?

I seems as if I need to do something else about my script... I think I need to find a way for the script to activate when the note is in my journal.

10-17-2010, 03:02 AM
Find




Users browsing this thread: 1 Guest(s)