Can't give unit orders

PrisonLove

Hard Realist
Reaction score
78
How can you make it so that you cannot give a unit any orders, but it is still selectable and owned by you?

Basically, something like Castle Wars, where a unit is spawned, given an order to move to an area, and the player, although he owns the unit, cannot give it any orders.

Edit: I uploaded the map. The current problem is that the unit can still be issued the "smart" order (right click) and this can cause it to move. I need this to not be the case. If I set the movespeed to 0 or move type to none, the unit will not move when I use SetUnitX()/SetUnitY(). Can someone take a look and see what the problem is?

Basically use the Koopa Troopa's bomb-omb ability and then select the bomb-omb and try to move him. He will, but he is not supposed to.
 

Attachments

  • BombOmbBonanza_v1.0b.w3x
    305 KB · Views: 168

Setharoth114

New Member
Reaction score
5
I think theres an ablitty like Ward or something that causes this to happen so that once you select the unit you don't get the order buttons, but you can still issue it orders via triggers. I'm not sure, though
 

sentrywiz

New Member
Reaction score
25
You can always try to make a trigger that works rather simple.

I am not near my editor right now, so I'll just explain my idea. Maybe when I get home I'll make the trigger for you.

Events: Player (?) selects a unit

Conditions: If selected unit is owned by Player (?) and selected unit isn't a structure or hero

Actions: Deselect selected unit for Player (?)

This will cause a player to not be able to select any units that are his even though they move under other trigger orders. However, why do you want to have a player controlled units not be selectable? Wouldn't be easier to just give them to some ally computer player? Just being blunt.

Good?

EDIT: Maybe add a "move camera" trigger when the player tries to select his units that will move his screen back to:
1) His Hero
2) His Base
3) Somewhere...

That will certainly keep players from selecting their own units :p
 

PrisonLove

Hard Realist
Reaction score
78
I would prefer that they are able to select the units, but not issue orders, just as in Castle Wars. Basically I'm creating an ability that creates a unit, orders it to walk in a given direction and will explode upon impact with either an enemy unit, or an unpathable area. I don't want to give the dummy unit locust, as I want it to have collision, be able to selected in unit groups, and just be selected in general.
 

sentrywiz

New Member
Reaction score
25
Tell me a bit more about the unit that is supposed to explode.

Does it have Attack option? Or its attack is changed to NONE?

If it doesn't have Attack option, does it have:

-Follow
-Move
-Stop
-Patrol

I am not quite sure because I never played Castle Wars, but I know right now that you can make a few triggers that will not allow a player to interfere with unit's actions through:

-Deselecting
-Pause/Unpause the unit
-Issue order

Besides that, maybe you should contact the host/creator of Castle Wars and kindly ask how he did that?
 

hgkjfhfdsj

Active Member
Reaction score
55
i think in castle fight units are given the ability ward as setharoth said. then when these units are ordered to smart (move), it is forced to attack-move to a region instead.
 

PrisonLove

Hard Realist
Reaction score
78
Tell me a bit more about the unit that is supposed to explode.

Does it have Attack option? Or its attack is changed to NONE?

If it doesn't have Attack option, does it have:

-Follow
-Move
-Stop
-Patrol

...

It has no attack, but has the other basic abilities. Basically, the unit just needs to walk until it hits another unit, or hits a wall. I can do that part, but I want it to be a selectable unit so that it can destroyed in AoE attacks, or targeted for spells and attacking and such. The unit should just not be able to be issued any order by the player.
 

PrisonLove

Hard Realist
Reaction score
78
Well I managed to do it by classifying the unit as a ward. Thanks for all of your help and effort guys!
 

PrisonLove

Hard Realist
Reaction score
78
Okay so I have found that the unit can indeed be issued an order by right clicking. I suppose this is because they retain the "smart" order ability. Is there a way to prevent this? I need the unit to still be selectable, just unable to be issued an order.

Edit: I uploaded the map so that people can take a look.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 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