• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How can i remove/disable researches for a single unit ?

Status
Not open for further replies.
Level 3
Joined
Mar 22, 2020
Messages
46
Hi guys (I had already post this same thread in the "trigger and scripts" forum but i'm unsure if that is the right place for my problem to be, so i'll post it here too).

Anyway, I have this building that can research various spells and use them.
Each single building of this type can only do one research and have only one spell.
The spell is chosen by research in the building itself.

Is there a way to ensure that once a spell has been chosen (researched) the others are no longer researchable but only for that specific building? (other buildings of the same type are independent, they must be able to choose another spell/research).

In other words, is there a way to remove/disable searches (that haven't been chosen) for the single unit instead of the player (like I did)?

Thanks in advance
 

Attachments

  • Trigger Problem.png
    Trigger Problem.png
    12 KB · Views: 39
If you have a trigger already then post the thread + trigger in the Triggers & Scripts forum. If you need help getting started with a trigger and don't know where to start then post here. Just don't post the same thread twice, I can move the thread to where it needs to go.

Researches (upgrades) are Player based so you aren't going to find anything regarding Units.

Possible solutions: You could morph the unit, replace it, or pause/stun it if you don't want it to be able to research anymore, but those will come with other side effects.

Alternatively, you could rework the system to use Abilities, which can be modified on an individual basis, or use Custom UI to create your own system/interface for upgrades.
 
Last edited:
If you have a trigger already then post the thread + trigger in the Triggers & Scripts forum. If you need help getting started with a trigger and don't know where to start then post here. Just don't post the same thread twice, I can move the thread where it needs to go.

Researches (upgrades) are Player based so you aren't going to find anything regarding Units.

Possible solutions: You could morph the unit, replace it, or pause/stun it if you don't want it to be able to research anymore, but those will come with other side effects.

Alternatively, you could rework the system to use Abilities, which can be modified on an individual basis, or use Custom UI to create your own system/interface for upgrades.
Ok, thanks :)
 
The problem is that there is no "Disable Tech for unit" action, it's only player-wide as you've noticed

One convoluted way I can think of is to use dummy units as "research", the icon and description would look like a research, so your buildings could start them, cancel them etc, and then whenever one is trained, you can apply your actual research and use the following to remove your unit-research from the building

  • Neutral Building - Remove YourResearchUnit from YourBuilding
(Note: this action only work if you've added unit manually with this action)

  • Neutral Building - Add Unit to YourBuilding with 1 in stock and a max stock of 1
It's clunky, but at least it should get the job done and be invisible for players
 
The problem is that there is no "Disable Tech for unit" action, it's only player-wide as you've noticed

One convoluted way I can think of is to use dummy units as "research", the icon and description would look like a research, so your buildings could start them, cancel them etc, and then whenever one is trained, you can apply your actual research and use the following to remove your unit-research from the building

  • Neutral Building - Remove YourResearchUnit from YourBuilding
(Note: this action only work if you've added unit manually with this action)

  • Neutral Building - Add Unit to YourBuilding with 1 in stock and a max stock of 1
It's clunky, but at least it should get the job done and be invisible for players
Sounds like an interesting idea, I'll think about it
Thanks a lot
 
Status
Not open for further replies.
Back
Top