ImmortaL_GoD
New Member
- Reaction score
- 4
-Is the only way to remove an item from a shop after use, vie trigger?
-How do you remove the number "1" indentation on the bottom right hand corner of the icon from the ability being sold in my shop?
-I'm trying to pick multiple types of units to either kill or move, but I've tried and AND or and both haven't worked =/.
That's an example of the two. And on that note, I'm also wondering how I would be able to only have it kill one of those units at a time for the latter, killing one. And I need that same method to apply to another one, which takes control of units (preferrably one at a time) in your base:
-Lastly and most importantly, again on the note of picking a "unit type of triggering unit:"
Any idea why this isn't killing the unit? It says it casts it, but does nothing. And I specify the unit and everything, dunno. I didn't have the set temp_group thing in there before, but I tried to make a loop to see if that would fix it, but it didn't do anything.
-How do you remove the number "1" indentation on the bottom right hand corner of the icon from the ability being sold in my shop?
-I'm trying to pick multiple types of units to either kill or move, but I've tried and AND or and both haven't worked =/.
Trigger:
- Beacon of Deception Red
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- (BeaconofDeception[1] is alive) Equal to True
- Actions
- Set temp_group = (Units in (Playable map area)(((Unit-type of (Picked unit)) Equal to |c000000ffWar Hawk) and (((Unit-type of (Picked unit)) Equal to |cFF333333Skittering Horror) and (((Unit-type of (Picked unit)) Equal to |c00800080Dark Elf Archer) and (((Unit-type of (Picke
- Unit Group - Order temp_group to Move To (Center of Center <gen>)
- Custom script: call DestroyGroup (udg_temp_group)
- Events
Trigger:
- Death Shroud Red
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- (DeathShroud[1] is alive) Equal to True
- Actions
- Set temp_group = (Units in (Playable map area)(((Unit-type of (Matching unit)) Equal to |c00800080Dark Elf Archer) and (((Unit-type of (Matching unit)) Equal to |c00800080Corrupted Ancient) and (((Unit-type of (Matching unit)) Equal to |c00800080Vile Corruptor) and (((Unit-ty
- Unit Group - Pick every unit in temp_group and do (Unit - Kill (Picked unit))
- Custom script: call DestroyGroup (udg_temp_group)
- Events
That's an example of the two. And on that note, I'm also wondering how I would be able to only have it kill one of those units at a time for the latter, killing one. And I need that same method to apply to another one, which takes control of units (preferrably one at a time) in your base:
Trigger:
- Web of Corruption Red
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- (WebofCorruption[1] is alive) Equal to True
- Actions
- Set temp_group = (Units in Red Base <gen>(((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True))
- Unit Group - Pick every unit in temp_group and do (For each (Integer A) from 1 to 1000000000, do (Unit - Change ownership of (Picked unit) to Player 1 (Red) and Change color))
- Custom script: call DestroyGroup (udg_temp_group)
- Events
-Lastly and most importantly, again on the note of picking a "unit type of triggering unit:"
Trigger:
- Mana Draw
- Events
- Unit - A unit enters Mana Draw <gen>
- Conditions
- (Unit-type of (Triggering unit)) Equal to |cffffcc00Slave
- Actions
- Game - Display to (Owner of (Triggering unit)), at offset (0.00, 0.00) the text: |c00d9d9ffYou cast ...
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Triggering unit) is owned by Player 1 (Red)) Equal to True
- ((Owner of (Triggering unit)) Current gold) Greater than or equal to 5000
- (Number of units in (Units in Red Spawn <gen>((Unit-type of (Matching unit)) Equal to |c00ff0000Orc Raider))) Equal to 10
- Then - Actions
- Set temp_group = (Units in Red Spawn <gen>((Number of units in (Units in Red Spawn <gen>((Unit-type of (Matching unit)) Equal to |c00ff0000Orc Raider))) Equal to 10))
- Unit Group - Pick every unit in temp_group and do (Actions)
- Loop - Actions
- Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) + 4000)
- Unit - Kill (Matching unit)
- Loop - Actions
- Else - Actions
- Do nothing
- If - Conditions
- Set temp_point = (Center of Mana Draw Finish <gen>)
- Unit - Move (Triggering unit) instantly to temp_point
- Custom script: call RemoveLocation (udg_temp_point)
- Events
Any idea why this isn't killing the unit? It says it casts it, but does nothing. And I specify the unit and everything, dunno. I didn't have the set temp_group thing in there before, but I tried to make a loop to see if that would fix it, but it didn't do anything.