cast spell by script?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: cast spell by script?

Post by Eleven Warrior »

So how would you add that to the Log Framework Jkos??

ohh I just add this code to the hook in fw ahy :)

Code: Select all

onDrawGui = function(g)
      g.color(2,2,2,240)
      g.drawRect(0, 0, g.width, g.height)
end
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: cast spell by script?

Post by Diarmuid »

Eleven Warrior wrote:Oh and don't stop working on Dark Dale it's going to be awesome.. The Shop system you have is so cool with the asking price of items and the buying price, man cant wait till this game is out. I (myself) think it will kill LOG 2, it offers so much more that that game. errrrrrrrrrrrrr sorry I should not talk like that..........I have been following your posts, and I like what I see awesome :) keep up the good work. PLEASE GET DARK DALE UP AND GOING MATE :)
Let's not get over excited here... In all honestly I think LoG 2 will probably be better, as Almost Human have more experience, resources and talent. But it doesn't mean I can't do a fun game still, and it's not exactly the same either, so I consider my own project complementary rather than competing. Proof is I definitely haven't stopped my implication with the community over here ;).

As for ORRR2 and light tracking, the sources are all there.
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: cast spell by script?

Post by JKos »

Eleven Warrior wrote:So how would you add that to the Log Framework Jkos??

ohh I just add this code to the hook in fw ahy :)
you can do something like this:

Code: Select all

function darkness(active)
	if active then
		fw.setHook('party.darkness.onDrawGui',function(g)
			g.color(2,2,2,240)
			g.drawRect(0, 0, g.width, g.height)
		end)
	else
		fw.removeHook('party.darkness.onDrawGui')
	end
end

- 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
Post Reply