fjeld_warg (monster definition)

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
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

fjeld_warg (monster definition)

Post by FeMaiden »

there's something thats just been kind of bugging me.
when I go to place a fjeld warg, there's 3 different ones in there
fjeld_warg
fjeld_warg1
fjeld_warg2

when I placed them, they all seem the same.
I don't understand why they have 3 of them.

I looked in the monster definitions and instead of the normal just defineObject{ script

I see

Code: Select all


for i=0,2 do
	local str = function(str) return (string.gsub(str, "?", iff(i > 0, i, ""))) end
	defineObject{
		name = str("fjeld_warg?"),
		baseObject = "base_monster",
		components = {
			{
				class = "Model",
				model = "assets/models/monsters/fjeld_warg.fbx",
				storeSourceData = true,
			},

now I figure, I'm not entirely sure i understand lua fully but I guess it's defining a string of numbers from 0-2 and then applying it to the name to create 3 separate assets with the one script.

but my confusion lies here...WHY?
why did they do this?
all 3 wargs have identical stats and AI

It's not like the ratling1 2 and 3 where each one has a different weapon and behavior.
I don't understand the point of this.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: fjeld_warg (monster definition)

Post by minmay »

Each one has different animations.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
THOM
Posts: 1281
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: fjeld_warg (monster definition)

Post by THOM »

...and that's at least important for having more independent looking warg-pairs.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

Re: fjeld_warg (monster definition)

Post by FeMaiden »

oh, I guess I didn't notice. They all looked the same to me.
I guess it's like the 4 different mummies, but at least those, I can tell them apart from each other.
Azel
Posts: 808
Joined: Thu Nov 06, 2014 10:40 pm

Re: fjeld_warg (monster definition)

Post by Azel »

Way to make them poor warg's feel self-conscious. Throw a dog a bone would'ya?

*cheesy joke drum roll*
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

Re: fjeld_warg (monster definition)

Post by FeMaiden »

Azel wrote:Way to make them poor warg's feel self-conscious. Throw a dog a bone would'ya?

*cheesy joke drum roll*
don't worry...some of the jokes in my mod are cheesier...
Post Reply