Cant remove invis, help please.

tiennen07

New Member
Reaction score
1
Ok, I've been working on a unit passive ability for a mod off of the strategy game my friends and i are working on. The passive ability is supposed to stealth the unit in question (Drenai Merry Man) when around the trees of his home country, but remove the stealth when not around the trees. Heres the trigger I have for the stealth part, but i can't seem to figure out a trigger for removing the stealth.

Treewalk
Events
Time - Every 0.40 seconds of game time
Conditions
Actions
Set TempDestructible = (Destructible-type of Summer Tree Wall 0263 <gen>)
Set TempGroup = (Units of type Drenai Merry Man)
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Set TempLoc = (Position of (Picked unit))
Destructible - Pick every destructible within 256.00 of TempLoc and do (Actions)
Loop - Actions
If ((Destructible-type of (Picked destructible)) Equal to TempDestructible) then do (Set TempBoolean = True) else do (Do nothing)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempBoolean Equal to True
Then - Actions
Unit - Add Permanent Invisibility to (Picked unit)
Else - Actions
 
i'll try to solve the problem

EDIT: Can u settle the codes in Code tags
Code:
 [/CODE ] or in wc3 tags? [WC3] [/WC3 ]
 
I'm sorry, i just picked up map editing like two days ago, so i'm pretty mcuh completely new to this.
 
the WC3 tags are codes that shows u the triggers in perfect edition.
Just go in trigger editor and in the name of the trigger where are the functions of the triggers (Event, Condition, Actions), Right-click on the name and go Copy as Text. Then while u r posting quick reply or new thread just press the "a" alphabet and Ctrl+V between the [ wc3 ] and [ /wc3 ] code
Here r a few s-shots:
 
Trigger:
  • Treewalk
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Set TempDestructible = (Destructible-type of Summer Tree Wall 0263 &lt;gen&gt;)
      • Set TempGroup = (Units of type Drenai Merry Man)
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Set TempLoc = (Position of (Picked unit))
          • Destructible - Pick every destructible within 256.00 of TempLoc and do (Actions)
            • Loop - Actions
              • If ((Destructible-type of (Picked destructible)) Equal to TempDestructible) then do (Set TempBoolean = True) else do (Do nothing)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TempBoolean Equal to True
                • Then - Actions
                  • Unit - Add Permanent Invisibility to (Picked unit)
                • Else - Actions
 
Try this
Trigger:
  • Trigger
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Learned Hero Skill) Equal to *Your Skill*
          • (Unit-type of (Triggering unit)) Equal to Drenai Merry Man
    • Actions
      • Set TempDestructible = (Destructible-type of (Summer Tree Wall 0263 &lt;gen&gt;))
      • Destructible - Pick every destructible within 300.00 of (Position of (Triggering unit)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Picked destructible)) Equal to TempDestructible
            • Then - Actions
              • Unit - Add Permanent Invisibility to (Triggering unit)
            • Else - Actions
 
Try this
Trigger:
  • Trigger
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Learned Hero Skill) Equal to *Your Skill*
          • (Unit-type of (Triggering unit)) Equal to Drenai Merry Man
    • Actions
      • Set TempDestructible = (Destructible-type of (Summer Tree Wall 0263 &lt;gen&gt;))
      • Destructible - Pick every destructible within 300.00 of (Position of (Triggering unit)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Picked destructible)) Equal to TempDestructible
            • Then - Actions
              • Unit - Add Permanent Invisibility to (Triggering unit)
            • Else - Actions

this would add permanent invisibility to the unit though, what is needed is a trigger that would remove permanent invisibility from the picked unit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top