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

Few Questions :)

Status
Not open for further replies.
Level 5
Joined
Apr 26, 2009
Messages
92
1) how come if i have a trigger named Untitled Trigger 018 that it screws up my map. When i test script errors come up, but not the normal kind (also it could be in GUI) it comes up after the map has minimized, it doesnt auto disable the trigger and instead of testing it goes to TFT home screen. Its fine if i change name but its very anoyying, any ideas.

2) Next how do i get Blizzard (netral hostile if it makes a diff) to not affect allies?

3) is there anyother way to make a type of unit unselctable other then, 'locast' abilty and trigger - player selcts unit - unit == unselctable unit then unsect for triggering player. can u like remove the abilty 'move' or something :ugly:
 
Level 5
Joined
Apr 26, 2009
Messages
92
If you guys want another problem : How to make an ability that is channeld (i think thats the word) like 'Blizzard' or 'Cloud' that the hero/unit has to stand there and cast, can you make it so they can do things like attack and move and the abilty will play out for durration?
 
Level 4
Joined
Jul 28, 2009
Messages
64
Hey reason,

I actually had do do this a while back when I wanted a unit to be controlled by AI, but still owned by a unit.

I just had the "player selects a unit" as the event, and then "deselect the unit" as the action - worked like a charm.

Edit:

Just a quick correction, I don't think you can do this unless you use the specific unit event, So the other way would be to just make it a periodic event, deselect unit of type, in unit group, or whatever.
 
Hey reason,

I actually had do do this a while back when I wanted a unit to be controlled by AI, but still owned by a unit.

I just had the "player selects a unit" as the event, and then "deselect the unit" as the action - worked like a charm.

Edit:

Just a quick correction, I don't think you can do this unless you use the specific unit event, So the other way would be to just make it a periodic event, deselect unit of type, in unit group, or whatever.

no,

heres a very neat trick that will allow anyone to use the Specific unit event


  • Trigger1
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to Trigger2 <gen> the event (Unit - (Triggering unit) Is selected)
  • Trigger1 alt
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Trigger2 <gen> the event (Unit - (Picked unit) Is selected)
  • Trigger2
    • Events
    • Conditions
    • Actions
      • Selection - Remove (Triggering unit) from selection for (Triggering player)
then just add conditions.

  • Trigger1
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Trigger - Add to Trigger2 <gen> the event (Unit - (Triggering unit) Is selected)
  • Trigger1 alt
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Footman
            • Then - Actions
              • Trigger - Add to Trigger2 <gen> the event (Unit - (Picked unit) Is selected)
            • Else - Actions
 
Status
Not open for further replies.
Top