accomplice
  • accomplice
  • 80.75% (Honored)
  • Private Topic Starter
16 years ago
Even unnamed units, is that possible?
I see there is a function for flashing a cameo, but without selecting the corresponding unit/building, it's probably a wasted effort.

For example is there a way to first set a WF to be selected to ensure the flashed humvee cameo will be seen? And I may stress that said WF is not named, possibly it has just previously been built through another script ;)

Thanks again for incoming replies :)

Sponsor
Drummin
16 years ago
You can "flash" a whole team though I'm not sure why you'd want to do that. If you had a team the was going to be transferred over to a player if discovered, maybe have the team flash for a few seconds then make the transfer. I guess the reason doesn't matter. I believe you're asking if a unit has to be selected or named and the answer is no. If this is doesn't answer your question, please ask a different way.
accomplice
  • accomplice
  • 80.75% (Honored)
  • Private Topic Starter
16 years ago
Eh the question is rather simple, is there a mechanism that would work like

Unit "Barracks" select[/code] which has the same effect as if you clicked your barracks (frame around the building, build menu in menu bar).

If that is possible, can it be done if those rax were not named? 
Like 
[code]If player "player" has greater than 0 structures of the type "Barracks"
Then Select one of them

My idea is to script some events, that go like:
- Player triggers event
- Some new unit is transferred to player
- Some specific upgrade button for those units is added to one of player's buildings
- To show that, the building gets selected, and the cameo of the newly added upgrade cameo starts flashing. (Cameo = command button in a build menu)

The first 3 steps are quite easy to do, i just was not able yet to figure out the last one.
Drummin
16 years ago
I don't believe there are any scripts to select a building for a player.
towns1
  • towns1
  • 97.25% (Exalted)
  • Captain
16 years ago
how can i set a team to build from one airfield and just one if i have two airfield???
Drummin
16 years ago
If the airfields are named you can try adding an airfield check to the condition side of the script. Not knowing what you've got going it's hard to give an example but something like
***IF***
Unit 'Airfield1' is owned by ''
***THEN***
Run Subroutine Script 'Make AirTeam1'.

The only other thing I can think of at this time is having each airfield on a different team and having the team run the subroutine script to build aircraft.
***IF***
Team 'Airfield1' has been created.
***THEN***
Have team 'Airfield1' execute Subroutine Script 'Make AirTeam1'.

Note that none of these ideas are tested and the scripts are written of the top of my head. Just some ideas you can try.