Are the terrain movement costs exposed in the scripts?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
robc04_1
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 98
Joined: Mon May 16, 2011 2:26 pm
Contact:

Are the terrain movement costs exposed in the scripts?

Post by robc04_1 »

I can't find any function call that returns the AP movement cost for terrain types. I would like to display them in a tooltip.

Thanks
Because I play too much,
One Guy, Too Many Games
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Post by pipfromslitherine »

There isn't anything to grab the terrain types and get their costs for a given unit type, if that is what you mean? You can get the cost for a given tile, but not the general data.

I'll add it to the wishlist.

Cheers

Pip
robc04_1
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 98
Joined: Mon May 16, 2011 2:26 pm
Contact:

Post by robc04_1 »

pipfromslitherine wrote:There isn't anything to grab the terrain types and get their costs for a given unit type, if that is what you mean? You can get the cost for a given tile, but not the general data.

I'll add it to the wishlist.

Cheers

Pip
Actually that would be good enough for now. Do you know the function call off the top of your head to get the terrain movement cost for a particular tile? All I can find it GetTerrainCoverValue to return the cover values.

Thanks
Because I play too much,
One Guy, Too Many Games
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Post by pipfromslitherine »

GetTileCost is the function you want. Check the autodocs for more details :).

Cheers

Pip
robc04_1
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 98
Joined: Mon May 16, 2011 2:26 pm
Contact:

Post by robc04_1 »

pipfromslitherine wrote:GetTileCost is the function you want. Check the autodocs for more details :).

Cheers

Pip
Thanks, got it.
Because I play too much,
One Guy, Too Many Games
Post Reply

Return to “Battle Academy : Modders Corner ”