fjeld_warg (monster definition)
Posted: Mon Nov 09, 2015 8:50 am
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
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.
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,
},
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.