Petri consumes glögg and codes with you

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
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:Done:
- bug fix: shootProjectile's offsetX, offsetY, offsetZ parameters don't work
Great, i'm glad it was that easy to fix. Would the monster:setSight(range) be possible? I can think many uses to it.
- 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 »

... ok, I'm going to have a brief stab at custom gui drawing ...
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: Petri consumes glögg and codes with you

Post by HaunterV »

LordYig wrote:Does the door object can be upgraded to include support for alternate direction ?
Can this be done easily ?

I mean one sided door opening at 0 degrees and two sided doors opening at 90 and 270 degrees is rather limited...
Also support for more than 2 sides for doors could be nice.

I am thinking, for example, of a 4 part door opening while sliding at 45°, 135°, 225° and 315°...
But two sided door opening at 0° and 180° could be nice also...
There's a lot of combination in fact...

A rotating door would be a bonus but that cause clipping problems so i don't think it is easily feasible right now.

Could this be added, in the model with node names ?
Does this need custom properties for the door object ?

Gives me the idea that we need a book case that when you activate a book it swivels on the spot depositing you on the other side of the wall. like in cartoons
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
User avatar
thomson
Posts: 337
Joined: Thu Sep 13, 2012 9:55 pm
Location: R'lyeh
Contact:

Re: Petri consumes glögg and codes with you

Post by thomson »

petri wrote:... ok, I'm going to have a brief stab at custom gui drawing ...
Fantastic! It seems that Christmas may come early this year :)
[MOD] Eye of the Beholder: Waterdeep sewers forum sources; Grimtools (LoG1 -> LoG2 converter) sources
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 »

I don't want to distract you when you're working on something as awesome as a potential GUI system, but to be more clear about something I bashed out earlier.

Item:onProjectileHit(monster, facing) would be really awesome for hitting a monster and knocking him back or freezing him etc.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: Petri consumes glögg and codes with you

Post by Diarmuid »

JohnWordsworth wrote:I don't want to distract you when you're working on something as awesome as a potential GUI system, but to be more clear about something I bashed out earlier.

Item:onProjectileHit(monster, facing) would be really awesome for hitting a monster and knocking him back or freezing him etc.
doesn't an onProjectileHit with item condition work?

I guess that you mean one hook on the item is more economic than onProjectileHit hooks on all monsters?
flatline

Re: Petri consumes glögg and codes with you

Post by flatline »

The doable:
1. A setSkill setting. With setSkill you could for example count available skill points and reset them, ie to respec your characters using getSkill and setSkill. (right now only getSkill and addSkill exists)

The wishlist:
1. A setting for turning off collisions for monsters so that you can have entities that can move through the partys square would be nice. Think ghosts, small creatures, and such.
2. Anything that acts as a "fake" party entity, to lure monsters to move towards it.
3. Any way to influence the asset properties of monsters.

On a somewhat related note:
Making my own Glögg right next to my PC, if anyone wants a recipe for it I'll write it up :)
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 »

@Dairmuid: Precisely. And in the community dungeons, if other people add new monsters - you have to get them to add your logic hook to their monsters.

I kind of figured that there might be a piece of code somewhere that already has the monster and item pointers in place to call the monster's onProjectileHit hook so calling an additional one on the item might only be a couple of lines of code in C++ but would make custom spells 'standalone' (include this 1 lua file in your dungeon and it works).
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 »

http://i.imgur.com/VdTj3.jpg

And this is how it's done:

Code: Select all

cloneObject{
	name = "party",
	baseObject = "party",
	onGuiDraw = function(g)
		-- draw transparent background
		g.color(30,30,30,150)
		g.drawRect(30, 50, 345, 300)

		-- draw the portrait
		g.color(255,255,255,255)
		g.drawImage("assets/textures/portraits/human_female_01.tga", 40, 60)

		-- draw some text
		g.color(255, 128, 128)
		g.drawText("Well, Hello", 200, 80)
		g.color(128, 128, 255)
		g.drawText("Grimrockers!", 200, 95)

		-- draw button with text
		g.color(128, 128, 128)
		g.drawRect(200, 120, 115, 20)
		g.color(255, 255, 255)
		g.drawText("How u doing?!", 210, 135)

		-- button logic
		if g.button("button1", 200, 120, 115, 20) then
			hudPrint("*kick in the groin*")
		end
	end,
}
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 »

MOAR GLÖGGG
Post Reply