Page 1 of 1
A few questions
Posted: Tue Aug 24, 2010 2:37 am
by rich12545
1. What exactly is a string?
2. If all units have search and destroy but there are a couple of victory locations, will units ever go to them?
3. If a unit is set to go to a set location, gets there and there's nothing to do, what happens? Does it just sit there for the rest of the scenario?
4. If five units are on search and destroy and two are set to go the where the victory flag is and the two get killed, is it even possible to win the scenario?
Posted: Tue Aug 24, 2010 2:43 am
by pipfromslitherine
1 - I'm not sure what you mean, a string is a chunk of text, but if you can give me the context I can probably be more help.
2 - Not purposely. If you have VPs which you want the AI to head for then you'd need to have orders for them to do that at some point. Having said that, if you give the AI a destination, they will engage anything they come across (so long as you don't tell them not to).
3 - IIRC they would do what they were told to do - if they are on S&D then they would get there then head off looking for trouble.
4 - You mean, is it possible for the AI to win? IF you want the AI to advance and cap then you probably want to either spawn some units if needed, or have the script peel off units into the team which is heading for the VP - if I understand what you want correctly?
Cheers
Pip
Posted: Tue Aug 24, 2010 3:08 am
by rich12545
1. I think you answered. Any chunk of text is a string. No wonder I couldn't figure it out. I thought it was some specific kind of text.
2. So you really need some units to go for the flag. Could it go S&D after it reaches the flag and then if the human takes it back will it then go back and try to get it again?
3. Ok, so you can give a unit two orders, one after another. Go to xy location and then S&D?
4. So it could be set that if the two units got killed, some of the others could have a change in orders and go for the flag?
Posted: Tue Aug 24, 2010 3:27 am
by pipfromslitherine
2 - you'd need to have something in the script watch for that circumstance and react to it
3 - No. The S&D logic gets over-ridden while there is a destination, but once they get there they go seek
4 - You can have a script watch for that, yes.