Scripting Reference (work in progress)
Re: Scripting Reference (work in progress)
Added list of hooks and their parameters to components.
Re: Scripting Reference (work in progress)
USEFUL !!! ( no more words coming
)

Re: Scripting Reference (work in progress)
Very useful... 

Re: Scripting Reference (work in progress)
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)
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)
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.
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)
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)
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.

- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: Scripting Reference (work in progress)
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!

One thing I just noticed: In the scripting reference, it says Time.getCurrentTime() where it is actually Time.currentTime() from my experimentation!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: Scripting Reference (work in progress)
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.JohnWordsworth wrote:This is awesome Petri. Loving that you can dynamically add hooks for most actions using connectors.
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
- cloneObject viewtopic.php?f=22&t=8450