Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Computer controlled SCV
Computer controlled SCV
Sep 1 2016, 1:22 pm
By: Stranger  

Sep 1 2016, 1:22 pm Stranger Post #1



Hi,

I have a SCV problem.

As in most tag team games, characters are healed by medics while out of combat, and so they are organic units.
One of them however is a vulture in my map, so basically it should be repaired by a SCV if we want it to regain some HP.

I tried using an allied computer controlled SCV (allied by a trigger), brought the vulture ressources cost to 0 / 0, and yet haven't found how to make it repair the allied mechanical unit. Medics next to allies will heal anyone, but I've never seen SCVs doing the same. Found nothing in AI scripts either.

Is even possible to make a computer controlled SCV to repair allied units, or is there another way ?

I'd like to avoid giving the player his own SCV which requires a manual action for repairs if possible..

Post has been edited 1 time(s), last time on Sep 1 2016, 1:29 pm by Stranger.



None.

Sep 1 2016, 2:42 pm TF- Post #2

🤙🏾

Judging from what's here, it might be impossible without mods http://www.staredit.net/topic/13823/#8



🤙🏾

Sep 1 2016, 3:20 pm Stranger Post #3



Oh, I hadn't seen that, thanks. Yep, it looks compromised.

I guess I'll just give the player a manually controlled SCV instead eventually ^_^'



None.

Sep 1 2016, 3:25 pm Dem0n Post #4

ᕕ( ᐛ )ᕗ

It looks like computer-owned SCVs will repair their own mechanical units, so maybe you can just give the player's Vulture to the computer whenever it needs to be repaired if you don't want the players to manually do it?




Sep 1 2016, 8:14 pm Stranger Post #5



Ah, this is true, I might indeed give it a try !

Thanks :)



None.

Sep 2 2016, 4:09 am noobscrub Post #6



----------

Post has been edited 1 time(s), last time on Jan 20 2023, 11:49 am by noobscrub.



None.

Sep 2 2016, 7:33 am Stranger Post #7



Wow, I had completly forgotten about that Race of Death thing and about how it looked like (I only remember it was about vultures running around) :O
Thanks, I'll take a look ! :)

The main interest of this was that the player wouldn't bother with repairs. He simply was supposed to tag and retire in his tag box, without risking to forget to start a manual repair on his vulture unit.

To sum up, so far I could :

- Use a hint from Race of Death
- Use P8 computer player and trying giving him both the SCV and the damaged vulture for auto repair (dunno if it will work)
- Leave everything to the human player (SCV and vulture) for manual repair



None.

Sep 3 2016, 6:38 am SPyro_Malin Post #8



What i did few years later to achieve something like that was very simple. But this is just cosmetic thing, if u want to make sure player pays x$ for y repaired damage i don't know. Perhaps giving it all to manual work is best way.

Vulture comes to location(you can add condition 'if has enough money') -> is stopped and healed for 50% (just to make sure it won't die and appear its still damaged) -> scvs are ordered to patrol to vulture + vulture player is set to enemy(could be done ever earlier) -> scvs appear to "repair" vulture -> after some time vulture is unstopped, gaved full hp, scvs are ordered somwhere else and kash or something needed is taken away from player.

I did excatly the same with probes mining this giant crystal formation (probes attacking invisible or burrowed unit)



None.

Sep 3 2016, 2:25 pm NudeRaider Post #9

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

If you end up using the manual method and are afraid the player forgets, make repairs cost some gas, give them 10 gas and detect if their gas goes down. If not center their screen on the unit and play a message.

A completely different method, although complicated to set up is to use EUD health detection and just set the hp to a certain % based off the hp detection and some timer math.




Sep 4 2016, 11:16 am Stranger Post #10



Quote
To sum up, so far I could :

- Use a hint from Race of Death
- Use P8 computer player and trying giving him both the SCV and the damaged vulture for auto repair (dunno if it will work)
- Leave everything to the human player (SCV and vulture) for manual repair

Couldn't make it.

In Race of Death, they are just normal SCVs standing there and belonging to player. He then uses them manually to repair the vulture when it stops by, but they won't do anything unless the player orders them.

Tried also to give both damaged Vulture and SCV to computer Player 8, but they weren't doing anything. It might need a Town script or something, but my P8 is used in many ways (with P8 units preplaced or spawned on the map) and I was afraid of some weird behaviours elsewhere on the map as side effects. I'm trying also to make progress faster, so it won't take me forever to have the map completed :)

I ended up with the manual method (both units controled by the player).

SPyro_Malin : That's not exactly what I was trying to do, but it's pretty nice for other purposes !

NudeRaider : I didn't plan to use EUDs, and actually never tried to use them either ^_^ But yes, I'll add a gas based check or something, should be ok and complementary !

Post has been edited 1 time(s), last time on Aug 31 2017, 7:41 am by Stranger.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 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
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 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
Please log in to shout.


Members Online: jun3hong, Oh_Man