Staredit Network > Forums > Modding Discussion > Topic: Smartcasting
Smartcasting
Nov 23 2012, 7:53 am
By: Raygoza  

Nov 23 2012, 7:53 am Raygoza Post #1



As far as I remember I've always wanted to smartcast in SC as it has been a pain to only select one of the spell casters and make it cast it's spell.
I get the feeling that every targettable spell should be smartcast as I cannot find a reason why not to.

And then some extra things that would be useful, if you somehow manage to get several building selected and start producing units I'd like that only one building at the time responded to the command.

At least this is the case of the zerg larva, everyone takes the order but if you do not have enough resources for everyone the last ones in the selection wont be able to morph, I find this indicating soemthing, as SC doesn't randommize those you can afford in your info panel but actually goes from firt selected to last selected as far as resources or supply goes.

I find this meaning that some part of the smartcasting mechanics already exist, what has to be done is that every targettable spell only orders one spell caster at the time starting with the first one in the selection panel and if that unit cannot the game would move on to the next that is able, if none are able then you could get the message "Not enough energy".

What are your opinions about introducing smartcasting and how to make it possible?



None.

Nov 23 2012, 9:32 am TF- Post #2

🤙🏾

If you understand the game code then it's probably not too hard, something like:

1. make a new unit pool from the player's selection
2. remove units that don't have enough energy to cast from that pool
3. pick the closest unit to the targeted point from that pool (this might need some pathing cost calculation for accuracy)
4. give the cast order to that unit only



🤙🏾

Nov 23 2012, 10:18 pm Raygoza Post #3



When you mean exclude units with not enough energy to cast the spell, it would also exclude units without energy which are in the same selection at that time?

By the way. an other thing that may be relevant.
Could you somehow increase the selection limit even if you wont get every unit displayed in the panel?
if so when Spell/Abilities are adressed will those units outside the info panel also receive those orders?
Will they be able to receive move, attack and move attack orders?
this is important as you sometimes need to move larger amount of units across the map.

Now something partially related
If smartcasting is included I'd like to put buildings in selection groups as well like comsat station's, this would require to be able to select multiple buildings, is this possible to do without removing the building definition in datedit?
If so you should not be able to select buildings and units together (this blocking function seems to already exist, though you cannot select a building and anything else at the same time anyway so it's not confirmed).

Also if this is possible how would you be able to introduce smartcasting to multiple buildings while having them selected, larvas included in this case, (this way you select one by one what it will do)
One larva at the time will get a mutate order or a production building at the time would get a production order.
Then there are things of the same nature which shouldn't be smartcast like building interceptors and scrabs, what solution do you suggest?



None.

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