New hooks?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: New hooks?

Post by JohnWordsworth »

"GraphicsContext.drawImage2(image, x, y, srcX, srcY, srcWidth, srcHeight, destWidth, destHeight)"

Legendary! This is going to make my little GUI tools 10x easier to build (and more efficient)! This was on my list of things to ask for during a Glogg session, but it's amazing to see it here already.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: New hooks?

Post by JKos »

Wow, onDrawGui is there, great. And why didn't I try GameMode.setCamera(nil)...maybe too obvious :) I tried everything else but not that.
- 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
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: New hooks?

Post by Xanathar »

I agree, drawImage2 is epic!
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: New hooks?

Post by cromcrom »

AAAARGH too late :-( Any party speed functions please ?
A trip of a thousand leagues starts with a step.
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: New hooks?

Post by Jouki »

so shame, I think I haven't found any hooks for injuries (or setting them) of heand/head/torso/legs/... :(
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: New hooks?

Post by petri »

Jouki wrote:so shame, I think I haven't found any hooks for injuries (or setting them) of heand/head/torso/legs/... :(
Wounds work just like any other condition. For example, setCondition("left_hand_wound") and hasCondition("left_hand_wound")
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: New hooks?

Post by JohnWordsworth »

@Petri: On minor quirk that I think exists with the onDrawGui hook, is that you can use it as a connector only if you have defined an onDrawGui hook in the party definition. The hook in the party define can be an empty function, but the connectors don't seem to be called unless that function has been defined first. Nothing major, but I mostly just wanted to let you know!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: New hooks?

Post by Jouki »

petri wrote:
Jouki wrote:so shame, I think I haven't found any hooks for injuries (or setting them) of heand/head/torso/legs/... :(
Wounds work just like any other condition. For example, setCondition("left_hand_wound") and hasCondition("left_hand_wound")
I meant setWound or sth like that, I'd like set the wounds to champions manually. or is that doing? cuz it doesn't sound like that.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: New hooks?

Post by petri »

Jouki wrote:
petri wrote:
Jouki wrote:so shame, I think I haven't found any hooks for injuries (or setting them) of heand/head/torso/legs/... :(
Wounds work just like any other condition. For example, setCondition("left_hand_wound") and hasCondition("left_hand_wound")
I meant setWound or sth like that, I'd like set the wounds to champions manually. or is that doing? cuz it doesn't sound like that.
Have you tried to set the condition?
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: New hooks?

Post by Jouki »

petri wrote: Have you tried to set the condition?
lol I've tried that and it didnt work but now it does. After few reloads (F5) editor just crashed [Not enough memory] (after relaunch the editor I've got the wounded hand [so I guess it's solved]).

btw. does editor have limited memory?

edit: oh I see, new conditions won't be executed by pressing F5. I have to go into Main menu and then back
Last edited by Jouki on Fri Nov 07, 2014 1:41 am, edited 1 time in total.
Post Reply