Staredit Network > Forums > Modding Assistance > Topic: Are Duke Tank / Duke Siege units worthless if used by AI?
Are Duke Tank / Duke Siege units worthless if used by AI?
Jun 20 2020, 5:41 pm
By: IlyaSnopchenko  

Jun 20 2020, 5:41 pm IlyaSnopchenko Post #1

The Curious

Hello folks,

I've got another question here (last time the issue was solved quickly, thanks; I realized that I was posting in a slightly wrong forum area). I was thinking about converting the Duke tanks into a custom unit - a war machine of a different kind - but was under the impression that the AI will never siege / unsiege them unless explicitly ordered through issue_order. Is that true, and if so, are there ways around that?

Now, I can make a unit that is only intended for human player's use but I'd prefer it to be available to the (mostly allied) AI too. If it's a non-starter I'll just find another way to implement a unit similar to my idea, without the mode change, so it's not a deal-breaker.

Post has been edited 1 time(s), last time on Jun 20 2020, 7:52 pm by IlyaSnopchenko.



Trial and error... mostly error.

Jun 21 2020, 5:12 pm Neiv Post #2



AI siege handling is hardcoded to just the normal tank unit ids, and I don't think anyone has ever looked at which place(s) of code that logic is located.



None.

Jun 21 2020, 6:35 pm IlyaSnopchenko Post #3

The Curious

Guess I'll just leave it there, then, because I can't imagine what kind of idle_orders might need to be written to handle this at least semi-harmoniously. :) Thanks.



Trial and error... mostly error.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Roy