List of components and methods

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
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: List of components and methods

Post by cromcrom »

MAdCatter, the official définitions have been released... Check the modding section, Scripting references.
A trip of a thousand leagues starts with a step.
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: List of components and methods

Post by JKos »

Just for info: Official documentation is not complete, for example it doesn't have the (really important)properties of the Brain component, so this is still useful. And yes, like I said in OP the argument types are in wrong order.
- 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
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: List of components and methods

Post by cromcrom »

Whatever, I am outta here.
A trip of a thousand leagues starts with a step.
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: List of components and methods

Post by JKos »

Hey cromcrom, I didn't mean to sound arrogant or rude, sorry if you got my comment that way. What I meant to say was that I noticed that there is still some things missing from the official documentation which are in this list.
- 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
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: List of components and methods

Post by NutJob »

JKos, I doubt that was the case. Even I recognize your comments as the exact opposite prose of my own, so that's really saying something. Then again, textual comments do have a way of infiltrating chemical patterns, behavioral demeanor, not usually inherit to receiving spoken word.
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: List of components and methods

Post by TheLastOrder »

Great job!

Is there a way to kill the party? I haven't found a reference for it. Nor in the forum :S

For example, if the party falls in a non-exit pit with spears, I want to kill them all (Metallica's joke) immediatly. Any idea about this?

:mrgreen:
Last edited by TheLastOrder on Mon Feb 02, 2015 6:56 pm, edited 1 time in total.
User avatar
THOM
Posts: 1274
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: List of components and methods

Post by THOM »

Do a function like this

Code: Select all

function PartyKiller()	
	party.party:getChampion(1):damage(100000, "physical")
	party.party:getChampion(2):damage(100000, "physical")
	party.party:getChampion(3):damage(100000, "physical")
	party.party:getChampion(4):damage(100000, "physical")
end
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: List of components and methods

Post by TheLastOrder »

THOM wrote:Do a function like this

Code: Select all

function PartyKiller()	
	party.party:getChampion(1):damage(100000, "physical")
	party.party:getChampion(2):damage(100000, "physical")
	party.party:getChampion(3):damage(100000, "physical")
	party.party:getChampion(4):damage(100000, "physical")
end
Genious!!! ;)
Post Reply