Triggering Player on a Neutral abilty?

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
OK, I have an ability, and I want it so everyone can use it but only on their own units. I made a neutral building (like a goblin laboratory), put on the ability, and tried to make it only target own units in the Targets Allowed field. I couldn't get it to work, so I tried just making it fail in a trigger. The problem is that Triggering Player gives the owner of the neutral building, which "officially" cast the spell.

I thought about making each player have the building be their own (by GetLocalPlayer()), but I'm not sure this would be safe from desyncs.

Any help would be appreciated.

-Korolen
 

Exide

I am amazingly focused right now!
Reaction score
448
Mind explaining what this spell is? What it does/supposed to do? What spell you based it of when you created it. And all other stuff about the spell that might be good to know..

Also, not sure if I understand.. What does the building (goblin laboratory) has to do with this spell? :confused:

If you want a certain spell (like a buff) to affect all units in the map. Try using a dummy unit to cast the spell over each unit.
 

Nigerianrulz

suga suga how'd you get so fly?
Reaction score
198
Mind explaining what this spell is? What it does/supposed to do? What spell you based it of when you created it. And all other stuff about the spell that might be good to know..

Also, not sure if I understand.. What does the building (goblin laboratory) has to do with this spell? :confused:
QUOTE]

i think it might be healing spell or a active spell thats what most of them are used for after all.
Having the build will help you cast the spell when the unit reaches it
Is the above right? I think so :p

so you want the building to cast the spell when the owner comes near?
maybe this will help
Code:
Something
Event - Unit comes within 200 range of a building
Condition - (Triggering Unit) is equal to (Building) equal to true))
                (Triggering Unit) equal to goblin001<gen>
                (Entering Unit) equal to (Owned by (Player 1 Red))
Action - Order (Triggering Unit) to Cast Windwalk on (Entering Unit)
something like that havnt been on WE for a long time
 

Exide

I am amazingly focused right now!
Reaction score
448
i think it might be healing spell or a active spell thats what most of them are used for after all.
Having the build will help you cast the spell when the unit reaches it
Is the above right? I think so :p

-If it is for healing, then he might as well use a fountain of health/mana. :p
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Sorry if I was ambiguous about exactly what I wanted.

The spell is based off of Channel... it's used so a player can indicate which one of his units will be participating in the next contest (which happens every minute).

On a side note, I want it so each player can use the ability once (i.e. can only nominate one of his units). Again, would using GetLocalPlayer() and removing the ability for the person who just cast it, but not for everyone else, cause a desync? Like, would his local instance of Warcraft say "Hey, that player can't cast that ability... it was removed a while ago!"

I just thought of something that wouldn't cause a desync... every player has their own building at the same spot, and, locally, every other player's building is transparent.

If there isn't an easy answer to make a simple neutral building work, I'll try ^that^, and if that doesnt work, I'll just make everyone have their own base at their own spot that the other players can see.

...And if that doesn't work, I'll buy you a mocking bird...
 

Exide

I am amazingly focused right now!
Reaction score
448
Not quite sure if I understand, still. :p
How about using a teleport to another room (the arena, or whatever), to indicate that "this is the unit that I want to use".
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
I tried locally turning everyone else's building transparent and infinitely small and it doesn't desync (or at least I don't think it desyncs), so thats what I'm using now.
 
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