[ian-reeds-games] Re: Inheritence doesn't like me

  • From: "Allan Thompson" <allan1.thompson@xxxxxxx>
  • To: <ian-reeds-games@xxxxxxxxxxxxx>
  • Date: Fri, 20 Dec 2013 17:06:25 -0500

Hi Craig,
I was not aware that Ian had introduced the inheritance thing yet. Maybe
that is why it isn't working? 
al

-----Original Message-----
From: ian-reeds-games-bounce@xxxxxxxxxxxxx
[mailto:ian-reeds-games-bounce@xxxxxxxxxxxxx] On Behalf Of Craig Brett
Sent: Friday, December 20, 2013 2:57 PM
To: ian-reeds-games@xxxxxxxxxxxxx
Subject: [ian-reeds-games] Inheritence doesn't like me

And far from this being a rant about the fact that I've not inherited rugged
good looks, witty charm or a boat load of cash, I'm talking in the Tactical
Battle sense.

I'm trying to reorganise my C&C Map Pack, both for the new version of the
scripts and to move it properly to v10. I decided to have a base
construction yard unit and inherit the three side's various construction
yards from that, since apart from what they produce, they're essentially the
same. However, it won't work!

Any help on this is gratefully appreciated. I'm sorry, I'm going to be
launching a barrage of questions here.

Here is my Construction Yard.txt

Structure
10
|flags
Description This is a generic construction yard. You should never see this.
friendly_type Construction Yard
structure_health_max=1000
credits_max=2500
credits_end_turn_restore=250r500
actions_max=100
actions_current=10
sight_range=5
team=1
|script_flags

And here is the Imperial Construction Yard.txt which I want to inherit it

Structure
10
|flags
Description This is where Imperial armies build their structures. All
buildings are deployed in the form of nanocores, which must find a place to
unfurl into their full structure.
inherits=construction_yard
add_skills build_instant_dojo,build_mecha_bay,build_defender_vx,repair
team=3
actions_max=1
sound=imperial_construction_yard

Can anyone spot anything that I'm doing wrong here. Does inheritence work on
structures? I haven't tried it on units lately, maybe I should try those
first.

I'm also wondering about the syntax of the inherits flag. With some flags
you can just have a space and then the value and with some you need the "="
sign. I know with script flags you don't necessarily need the = sign. So
which is the right way to do it for the inherits flag?

Hope this all makes sense. And hope you're all well,

Craig



Other related posts: