Page 1 of 1

fjeld_warg (monster definition)

Posted: Mon Nov 09, 2015 8:50 am
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.

Re: fjeld_warg (monster definition)

Posted: Mon Nov 09, 2015 9:45 am
by minmay
Each one has different animations.

Re: fjeld_warg (monster definition)

Posted: Mon Nov 09, 2015 10:37 am
by THOM
...and that's at least important for having more independent looking warg-pairs.

Re: fjeld_warg (monster definition)

Posted: Mon Nov 09, 2015 11:05 am
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.

Re: fjeld_warg (monster definition)

Posted: Mon Nov 09, 2015 10:10 pm
by Azel
Way to make them poor warg's feel self-conscious. Throw a dog a bone would'ya?

*cheesy joke drum roll*

Re: fjeld_warg (monster definition)

Posted: Mon Nov 09, 2015 10:41 pm
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...