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!
Post Reply
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: List of components and methods

Post by NutJob »

And before this post

Image
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: List of components and methods

Post by Jouki »

NutJob: made my day :D
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: List of components and methods

Post by Lark »

Although everyone besides me probably already knew this, it might be worth noting that, while the list has an entry for class "FloorTriggerComponent", for example, the actual code to reference one of the floor triggers is simply "floortrigger". For example, to call the "disable" method, use:

Code: Select all

floor_trigger_8.floortrigger:disable()
I assume it's similar with other objects too.

Again, thanks a million JKos!! :D
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: List of components and methods

Post by NutJob »

Lark wrote:Although everyone besides me probably already knew this, it might be worth noting that, while the list has an entry for class "FloorTriggerComponent", for example, the actual code to reference one of the floor triggers is simply "floortrigger". For example, to call the "disable" method, use:

Code: Select all

floor_trigger_8.floortrigger:disable()
I assume it's similar with other objects too.

Again, thanks a million JKos!! :D
Yes, many (most).
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

Re: List of components and methods

Post by MrChoke »

Great job dude! I was trying everything I could think of to get this.
User avatar
akroma222
Posts: 1029
Joined: Thu Oct 04, 2012 10:08 am

Re: List of components and methods

Post by akroma222 »

Jkos, well done and thank you!!

ABSOLUTELY BRILLIANT :D
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: List of components and methods

Post by Batty »

Image
---------------------------------------------
class BrainComponent

setMorale(number) :twisted:
performAction(number,number,string)
pursuit
follow
seek(number,number)
flee
wander
wanderIfPartyNotDetected
wait
pickUpItem
operate(string,string,string)
openLockWith
TricksterBrainComponent

---------------------------------------------
cfisher2833
Posts: 11
Joined: Sat Oct 18, 2014 9:14 pm

Re: List of components and methods

Post by cfisher2833 »

Sertorius wrote:I'm a total mod newbie and have sorted out very little about scripts and lua in general (just got my very first lua viewer/editor today), but I have a feeling I should copy this to a txt file! Thanks!
Oh yeah. Starting off, the hardest thing about scripting is knowing what the fuck you can even do or what specific word you need to actually do it.
User avatar
darkwuulf
Posts: 6
Joined: Fri Oct 24, 2014 3:51 am

Re: List of components and methods

Post by darkwuulf »

I too must express my kudos and thanks to JKos.
User avatar
Jhaelen
Posts: 74
Joined: Fri Oct 19, 2012 10:49 am
Location: Paris, France

Re: List of components and methods

Post by Jhaelen »

Man, can I say I love you :D ? Thank to you I can start coding my mod right now !
Post Reply

Return to “Mod Creation”