2qs how do i hide a a unit group and how should i tint a "ghost"

CaptDeath

New Member
Reaction score
103
ok the first i need to hide all the units in a unit group temporailly were no1 not even the owner can see them
2nd i need to know how should i tinit a unit so everyone knows there a "ghost"
 

Curo

Why am I still playing this game...?
Reaction score
109
1) Set TempGroup = Whatever you want. Pick every unit in TempGroup and Hide picked unit.

2) I don't know exactly what you want here, but you can change the transparency of a unit, where 100% is invisible, and 0% is completely visible.
 

Metaldrummer

New Member
Reaction score
11
1. There is an action called Unit - Hide. Just do "Pick every unit in <Unit Group> and do (Actions)" and "Unit - Hide (Picked unit)

2. Give the particular unit the Unit Ability "Ghost".
 

CaptDeath

New Member
Reaction score
103
isnt that convient function lol
and the tinting like 100%.....
ill try the ghost thing +rep for you 2
 

Curo

Why am I still playing this game...?
Reaction score
109
The ability ghost will make the unit permanently invisible, even when it attacks, casts, and moves. This is the ability shades have. So, players won't be able to see the unit unless they can see invisible units. I'm not sure if this is what you want. Use transparency if you want it just for the visual effect, use "ghost" if you want an permanently invisible unit.
 

Metaldrummer

New Member
Reaction score
11
I couldn't find the transparency option. Object editor?

There's also Ghost (Visible), but I don't know the difference.
 

Curo

Why am I still playing this game...?
Reaction score
109
I couldn't find the transparency option. Object editor?

Trigger editor. Action -> Animation -> Change unit vertex colouring.

Not so sure about Ghost (visible), but check it out.
 

CaptDeath

New Member
Reaction score
103
guys i have a issue im not getting the units when there unhiden
heres the triggers
ok so this isnt working
what i want is the unit to be mine and hiden
which works
Trigger:
  • Capture Souls
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Capture Soul
    • Actions
      • Set TempTarget = (Target unit of ability being cast)
      • Set TempCaster = (Triggering unit)
      • Set TempGroup = (Player group((Owner of (Triggering unit))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of TempCaster) Less than or equal to 99
        • Then - Actions
          • Unit - Change ownership of TempTarget to (Owner of TempCaster) and Change color
          • Unit Group - Add TempTarget to CapturedSouls[(Player number of (Owner of TempCaster))]
          • Unit - Set the custom value of TempCaster to ((Custom value of TempCaster) + 1)
          • Unit - Add Ghost to TempTarget
          • Unit - Hide TempTarget
          • Game - Display to TempGroup the text: ((Soul Captured + ( you now have + ((String((Custom value of TempCaster))) + Out of 100 max souls))) + . Keep up the good work <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />)
        • Else - Actions
          • Game - Display to TempGroup the text: The Max is 100 soul...
      • Custom script: call DestroyForce(udg_TempGroup)

but when i try to recall them
Trigger:
  • Summon Souls
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Summon Souls
    • Actions
      • Set TempPoint = (Position of (Casting unit))
      • Unit Group - Pick every unit in CapturedSouls[(Player number of (Owner of (Triggering unit)))] and do (Actions)
        • Loop - Actions
          • Unit - Unhide (Picked unit)
          • Unit - Move (Picked unit) instantly to TempPoint

i dont get them back
 

Curo

Why am I still playing this game...?
Reaction score
109
[del]CaptDeath, I'm not answering any more of your questions until you replace Set TempGroup = (Player group((Triggering player))) with Set TempPlayer = Triggering Player. Groups leak, players don't. There is no need for you to be using a useless conversion either.[/del] Never mind, I see why you are using it that way. You should put the Set TempGroup and Display to TempGroup functions together so I don't get confused :p

And while I'm at it, use Triggering unit instead of Casting unit at all times. Casting unit just returns Triggering unit anyways, so you are just making your trigger slower for no reason.

Anyways, I think the problem may be that the game cannot "pick" hidden units. Not positive on that though. By the way, you are unhiding the units in your second trigger, but they still have the ability Ghost. I don't think Ghost is needed here.
 

CaptDeath

New Member
Reaction score
103
but the custom script
Custom script: call DestroyForce(udg_TempGroup)
i should be fine >.<
ill try what your asking though
---edit---
cant display a msg to one player using temp player GAH!!!!
 

Curo

Why am I still playing this game...?
Reaction score
109
Lol, sorry. I realized that you would just have to use TempGroup again later on. It confused me because the 2 functions using TempGroup were so far apart. I would put the Set TempGroup function inside the "else" portion of the statement. Saves running an extra step if the "then" portion runs.

I edited my previous post. I always do, so keep checking back :p
 

Curo

Why am I still playing this game...?
Reaction score
109
i updated the capture a lil bit
ill change to triggering unit

Not saying that will fix your trigger, per say, but it is a good habit to get into nonetheless.

Try just adding/removing Ghost (instead of hiding/unhiding) to see if the trigger works fine. If it does, then your problem is most likely that WE will not let you "pick" hidden units. Although I know it lets you "pick" hidden doodads, so your problem may be caused by something that has passed my eye.
 

Metaldrummer

New Member
Reaction score
11
Okay I did it and it worked. Here are my triggers (I used Banish to capture, and Chain Lightning to resummon)
Trigger:
  • Capture
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Banish
    • Actions
      • Set TempTarget = (Target unit of ability being cast)
      • Set TempCaster = (Triggering unit)
      • Set TempPlayer = (Owner of (Triggering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of TempCaster) Less than or equal to 99
        • Then - Actions
          • Unit - Change ownership of TempTarget to TempPlayer and Change color
          • Unit Group - Add TempTarget to CapdSouls[(Player number of TempPlayer)]
          • Unit - Set the custom value of TempCaster to ((Custom value of TempCaster) + 1)
          • Unit - Add Ghost to TempTarget
          • Unit - Hide TempTarget
        • Else - Actions
          • Game - Display to (Player group(TempPlayer)) the text: Max is 10 souls.

Trigger:
  • Release
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Chain Lightning
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempCaster = (Triggering unit)
      • Unit - Set the custom value of TempCaster to 0
      • Unit Group - Pick every unit in CapdSouls[(Player number of (Owner of (Triggering unit)))] and do (Actions)
        • Loop - Actions
          • Unit - Unhide (Picked unit)
          • Unit - Remove Ghost from (Picked unit)
          • Unit - Move (Picked unit) instantly to TempPoint
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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