• 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.

[Trigger] Reserch Trigger Help

Status
Not open for further replies.
Level 4
Joined
Jul 22, 2012
Messages
72
Ok So I have a railroad station place that is invunerable, Its basically a warp place to bring you to the other railroad station(That is the same building)So Its Invunerable ect aswell). But U need to research a tech upgrade thing to allow it to be used. then it will be vunerable and useable.

How do I make this kinda trigger?
I got no clue where to start.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Create the research, and where it has to be researched, the stations, etc.

How does the station works? It sells a rune? It sells a unit that's automatically removed? etc. De event would depend on that. I would use a dummy rune with no effect that's removed automatically when picked so.

Event: A unit sells an item
Condition: Item being manipulated Equal to StationTransport (or whatever)
Actions:
If /Then / Else
If - Research is already researched
Then - Move the unit, etc.
Else - Display a message: "Do the research first".

When you do the research, Pick Every Unit in PlayAble map area and If /Then /Else
If - Unit Type of Picked Unit is Equal To RailRoadStation
Then - Make unit vulnerable (Or Remove 'Invulnerable' ability)
 
Create the research, and where it has to be researched, the stations, etc.

How does the station works? It sells a rune? It sells a unit that's automatically removed? etc. De event would depend on that. I would use a dummy rune with no effect that's removed automatically when picked so.

Event: A unit sells an item
Condition: Item being manipulated Equal to StationTransport (or whatever)
Actions:
If /Then / Else
If - Research is already researched
Then - Move the unit, etc.
Else - Display a message: "Do the research first".

When you do the research, Pick Every Unit in PlayAble map area and If /Then /Else
If - Unit Type of Picked Unit is Equal To RailRoadStation
Then - Make unit vulnerable (Or Remove 'Invulnerable' ability)

That requires the usage of it selling an item. For it to work as soon as you come within a certain range, you would do as follows.

  • Untitled Trigger 001
    • Events
      • Unit - A unit comes within 160.00 of Train Station <gen>
      • Unit - A unit comes within 160.00 of Train Station 2 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current research level of Tech Upgrade for (Triggering player)) Equal to 1
        • Then - Actions
          • Unit - Move (Triggering unit) instantly to (Center of (Playable map area))
        • Else - Actions
          • Game - Display to (Player group((Triggering player))) the text: You do not have tha...
Center of (Playable Map Area) would be whatever point location you want it to go. Of course then you would have to clear the leaks with call RemoveLocation(udg_variable), but that's easy.
 
Level 4
Joined
Jul 22, 2012
Messages
72
Didn't work at all. Maybe u need more detail. ok the building is a way gate. I want it to become active after u reserch the Tech for it, Thats All I need now.
 
When the research is finished set the waygate destination?

If you already set the destination but disable the waygates:

  • Neutral Building - Enable (Train station)
  • Neutral Building - Enable (Train station 2)
If you don't but don't disable the waygates this should work:

  • Set TempPoint = Position of (Train station 2)
  • Neutral Building - Set (Train station) destination to (TempPoint)
  • Custom script: call RemoveLocation (udg_TempPoint)
(Can't remember if it automatically sets it up the other way)

So you just stick that onto a trigger which runs when the research is finished:


  • Train Stations
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
      • <<Your research>>
    • Actions
      • Set TempPoint = Position of (Train station 2)
      • Neutral Building - Set (Train station) destination to (TempPoint)
      • Custom script: call RemoveLocation (udg_TempPoint)
 
Last edited:
Status
Not open for further replies.
Top