Page 1 of 1

Advanced mapping and map related scripting

Posted: Wed Oct 07, 2015 8:05 am
by ARC1778
I'm designing this map here: http://www.gametoast.com/viewtopic.php? ... 08#p518408

And I have some questions about mapping and scripting it.

I'm looking at making 4-6 large buildings, 2 of them entirely unique, the others, the same with different rooms, how am I best getting these in game?

Ie should I make them without intractable objects and put them in game as "one piece?"

Or do it "floor by floor?"

Or do it as a shell, and add the rooms as needed?

Can the AI be "Taught" that if it wants to go through a door it must destroy it's "lock"?

Can the AI be "taught" to breach a wall or door to get access to a room "locked-off" behind?

Can the AI be "taught" to stand in a grav-lift until it moves, and then stops again, and then told to "Get out"?

Or can the lifts be controllable, but "on-rails" vehicles?

I know lifts have been made, but did the maker ever write a guide?

How does one make ambushes in instant action? I.e. shoot a lock, someone runs out, enter the living room and someone runs out from another room?

And how would one make the "ambushes" random so that if the CP nearest was owned by a faction, then 20% of the time, that faction's units would replace the local (Default civilian) side in that ambush?

Any other comments/ideas? How would this be better? Etc

Re: Advanced mapping and map related scripting

Posted: Wed Oct 07, 2015 10:53 am
by Noobasaurus
ARC1778 wrote:Can the AI be "Taught" that if it wants to go through a door it must destroy it's "lock"?
Yes.
ARC1778 wrote:Can the AI be "taught" to breach a wall or door to get access to a room "locked-off" behind?
Yes.
ARC1778 wrote:Can the AI be "taught" to stand in a grav-lift until it moves, and then stops again, and then told to "Get out"?
Yes.

All of these things can be accomplished, though some are difficult, and may require separate teams.
ARC1778 wrote:I know lifts have been made, but did the maker ever write a guide?
http://www.gametoast.com/viewtopic.php?f=27&t=5865

Also one in the documentation.
ARC1778 wrote:How does one make ambushes in instant action? I.e. shoot a lock, someone runs out, enter the living room and someone runs out from another room?
There's a bunch of tutorials in the FAQ for ambushes. You just need to set it up for your needs.
ARC1778 wrote:And how would one make the "ambushes" random so that if the CP nearest was owned by a faction, then 20% of the time, that faction's units would replace the local (Default civilian) side in that ambush?
Use math.random() in your code, so each time you want to check if the ambush will appear or not, it'll give you a random number to use.

Re: Advanced mapping and map related scripting

Posted: Wed Oct 07, 2015 11:02 am
by ARC1778
*Salutes* Thank you sir!