Page 4 of 10
Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 1:05 pm
by petri
Added list of hooks and their parameters to components.
Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 1:10 pm
by Doridion
USEFUL !!! ( no more words coming

)
Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 1:11 pm
by Grimfan
Very useful...

Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 1:14 pm
by Doridion
Hum .... will I be annoying if I ask you to make the hook's writing in bold ? ( making them more visual )
Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 1:44 pm
by Grimfan
If you eventually remove the unused objects from your editor Petri can you keep their definitions in the asset pack? Some people might want to use the beach overhang or get the tomb wall spears up and killing.

Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 1:50 pm
by NutJob
I apologize for what you're about to read.
Can I use these events programmatically without using a hook into a definition? I rather (but probably can't) use a generic function to "route" *all* events that happen in the game. The events are still triggering even without a hook, yes? This is about the only area I'm desperately struggling and my major stopping point to proceed. I know what I want to use but not too sure how to get the event information. Hell, feel free to lambast me for not "getting it" with a detailed, but short, example description.
Here's something I have been trying to capture for literally days now and I have tried so many ways, now, I'm ashamed to be part of humanity: "How do I capture that the party was, just, actively teleported?" If anyone can answer that I promise to not ask another question for one week. Yes, one full week, amazing right? Telling me to simply use something like .onActivate will not affect my knowledge/progress. ~laughs~
I look forward to no one responding.
Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 2:02 pm
by Grimfan
I wouldn't be too sure of that NutJob. You won't get a response from me but I bet Prozail or JKos might have a crack at answering your query if they feel inclined.

Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 2:05 pm
by Doridion
Grimfan wrote:I wouldn't be too sure of that NutJob. You won't get a response from me but I bet Prozail or JKos might have a crack at answering your query if they feel inclined.


Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 8:59 pm
by JohnWordsworth
This is awesome Petri

. Loving that you can dynamically add hooks for most actions using connectors.
One thing I just noticed: In the scripting reference, it says
Time.getCurrentTime() where it is actually
Time.currentTime() from my experimentation!
Re: Scripting Reference (work in progress)
Posted: Mon Nov 03, 2014 9:35 pm
by JKos
JohnWordsworth wrote:This is awesome Petri

. Loving that you can dynamically add hooks for most actions using connectors.
Yeah, it's great. I have played with hooks and connectors a bit and connectors differ from hooks so that their return value doesn't matter. So you can't for example prevent party from moving with a connector, you need a hook for that. But if onMove-hook returns false onMove-connectors aren't executed. Just something to keep in mind.