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.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Zycorax