• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Assistance Please

Status
Not open for further replies.
Level 14
Joined
Dec 29, 2009
Messages
931
I'm working on my RPG, I added in my unique quest system, and as soon as I added in the Item Vault and Quest Box, I ran into a problem.

I'm using the following trigger as a hero-repick trigger.

  • Hero Repick
    • Events
      • Player - Player 1 (Red) types a chat message containing -repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 7 (Green) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Unit - Remove (Picked unit) from the game)
      • Unit - Create 1 Hero Soul for (Triggering player) at (Center of Hero Repick <gen>) facing Default building facing degrees
      • Camera - Pan camera for (Triggering player) to (Center of Hero Repick <gen>) over 0.00 seconds
      • Game - Display to (All players) for 3.00 seconds the text: ((Name of (Triggering player)) + is repicking their hero.)
The problem is with this 'action' specifically.

  • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Unit - Remove (Picked unit) from the game)
When the player types "-repick", it removes everything, even the Item Vault and the Quest Box, which are buildings instead of units. I need a new action to replace this one, in which ONLY units/heroes are removed.

+Rep to whoever helps.

Thanks,
-Arkon Kaos (A.K.A. Vital Sin)
 
Level 11
Joined
Jun 20, 2009
Messages
880
  • Repick
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering Player))) 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)) Not equal to Quest Box
            • Then - Actions
              • Unit - Remove (Picked unit) from the game
            • Else - Actions
 
Level 8
Joined
Jun 26, 2010
Messages
530
When the player types "-repick", it removes everything, even the Item Vault and the Quest Box, which are buildings instead of units. I need a new action to replace this one, in which ONLY units/heroes are removed.

Just so you know, buildings ARE units, wich are of the type building. They will be included/work in "pick every unit", "unit takes damage", "targeted units" and etc =)
 
Level 3
Joined
Jul 7, 2009
Messages
43
  • Hero Repick
    • Events
      • Player - Player 1 (Red) types a chat message containing -repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 7 (Green) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
    • Conditions
    • Actions
    • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) is A Hero) Equal to True
          • Then - Actions
            • Unit - Remove (Picked unit) from the game
            • Unit - Create 1 Hero Soul for (Owner of (Picked unit)) at (Center of (Hero Repick)) facing Default building facing degrees
            • Camera - Pan camera for (Triggering player) to (Center of Hero Repick <gen>) over 0.00 seconds
            • Game - Display to (All players) for 3.00 seconds the text: ((Name of (Triggering player)) + is repicking their hero.)
          • Else - Actions

Eh idk if this will work, kinda new to this triggering thing but try it out if it sounds right to ya =D

Probably wont work if ur RPG characters arent heroes...but thats just a silly thing to do =D

(I just quoted you and changed your original trigger post to what i think should work...)
 
Status
Not open for further replies.
Top