Petri consumes glögg and codes with you

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Petri consumes glögg and codes with you

Post by petri »

Diarmuid wrote:oh, I just realized:
item:onEquip(slot) ! Simple but super super super super useful.
I agree!

- added Item:onEquipItem(champion, slot) and Item:onUnequipItem(champion, slot) hooks (works for all inventory slots)

I'm going to have a short break.. need more GLÖÖGG!
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Petri consumes glögg and codes with you

Post by Komag »

I think these guys have the requests covered, I just want to say thanks petri, you're awesome for this! 8-)

:D


- oops, one little request, method to removeConnector(event, target, action)
- uh, one more pair, Monster:getAIState(), Monster:getLevel()
(that would help for custom mod difficultly levels, or special challenges depending on previous party actions or possessions)
Finished Dungeons - complete mods to play
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Petri consumes glögg and codes with you

Post by petri »

JKos wrote:
petri wrote:
Grimwold wrote:shootProjectile() to reference the same flags bitfield as damageTile() so that the originator ordinal can be used
The projectile code is rather limited at the moment... I could add "championOrdinal" argument to shootProjectile() which indicates the champion who casted the projectile. Is this good enough?
Yes please, and it would be nice if shootProjectile could return the shot projectile id or the actual entity.
Ok, added optional 15th (!!) argument championOrdinal to shootProjectile.
shootProjectile should really use named arguments......
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: Petri consumes glögg and codes with you

Post by Grimwold »

petri wrote:
JKos wrote:
petri wrote:The projectile code is rather limited at the moment... I could add "championOrdinal" argument to shootProjectile() which indicates the champion who casted the projectile. Is this good enough?
Yes please, and it would be nice if shootProjectile could return the shot projectile id or the actual entity.
Ok, added optional 15th (!!) argument championOrdinal to shootProjectile.
shootProjectile should really use named arguments......
Great! thanks Petri!
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: Petri consumes glögg and codes with you

Post by LordYig »

Komag wrote:I just want to say thanks petri, you're awesome for this! 8-)
I support this statement One thousand times and even more ! :D
You (grim)...Rocks !
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: Petri consumes glögg and codes with you

Post by Xanathar »

I just want to say thanks petri, you're awesome for this! 8-)
I totally agree! The support AH dedicates to us is awesome!
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
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: Petri consumes glögg and codes with you

Post by JKos »

petri wrote:
Ok, added optional 15th (!!) argument championOrdinal to shootProjectile.
shootProjectile should really use named arguments......
Or you can just remove all offset arguments because they don't seem to work :) Anyway thanks a lot!
- 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
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Petri consumes glögg and codes with you

Post by petri »

Thanks guys :)

- added Monster:setPosition(x, y, level, facing) and Party:setPosition(x, y, level ,facing) (note the order of parameters is inconsistent with other methods, usually they're level, x, y, facing, because of legacy things related to how teleporting is implemented)
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: Petri consumes glögg and codes with you

Post by JohnWordsworth »

@JKOS: Haha, that's a good point. Those offset parameters would be nice to use :).

Also agree with everyone else - if I could buy you more glogg right now from behind my desk, I would definitely do so! (Seriously!)
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Petri consumes glögg and codes with you

Post by petri »

Cheers JohnWordsworth !

Hmm, what next...? dialoque & ai requests are too big to handle right now...
Post Reply