how to make "set-up alliance" work?

NineClick

New Member
Reaction score
11
how do you make this action work: "For Player 1, turn on "help request or help respond" on towards Player 2"? .. it seems that this action is not working. I've tried it a lot of times but it doesn't work.
 

Exide

I am amazingly focused right now!
Reaction score
448
What do you mean?
What do you want to do?
What does your triggers look like?
What is going wrong?
 

NineClick

New Member
Reaction score
11
what i want to happen is:

- i want my setup to be like in dota. where player 1 and player 7 are not in the selection but they are in the game and they respond to other players when the hero of a player is attacked.

but i don't know how they do it. i've done this:

- i set the player controller of player 1 and 7 to neutral or none so that they do not exist in the selection and create a trigger for each of the players like:

"Make Player 1 (Red) treat Player 2 (Blue) as an Ally with share vision"
"Make Player 1 (Red) treat Player 7 (Green) as an Enemy"

- the alliances and enemy setup are perfect but it (player 1 or 7) does not respond when a hero is attacked. they supposed to attack the unit attacking the hero, ryt?

- i've tried setup alliance action (the one i'm asking on this thread):

"For Player 1 (Red), turn On Help Response towards Player 2 (Blue)"
"For Player 2 (Blue), turn On Help Request towards Player 1 (Red)"

- but it doesn't work. no help received from player 1 or 7 when my hero is attacked.

i've been asking this question for a long time and no one can answer it. pls help. +rep to those who can help me. thanks.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
it is because they havent got any AI, to make them help players you got to enable a custom AI for those players.
 

NineClick

New Member
Reaction score
11
oh my. it seems that nobody knows how to do it. i guess i have to make player 1 and 7 as computer players. :banghead:
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> they are supposed to attack the unit attacking the Hero, right?

Not really, no.
Given they are send around with "attack-move to somewhere", they attack whatever they feel like attacking on the way.
It's actually the player that's supposed to help them, not the other way around.

Where you get that from?


And, running an AI script is just not a good idea.
Comps on scripts will ignore "(attack-)move" orders from triggers...


> how to inject it into map

That part would be easy though: File / Add to map :p
 

NineClick

New Member
Reaction score
11
the computer player helps the hero when they are attacked.

in dota, when you attack an enemy hero, what will the creeps do? they will go to you and attack you. if you want to catch the attention of the creeps, you attack the hero then you back. ryt?

that's what i want to happen.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> In DotA, when you attack an enemy hero, what will the Creeps do?

I haven't the foggiest. Neither do I care. I've never seen that "map" and the chances I ever will are somewhere between non-existent and even less likely.


Regardless though, can anyone confirm this perceived intelligent behavior?
 

NineClick

New Member
Reaction score
11
Sorry Sir Ace. .. I thought you like that map. :p

'Coz you created a template for it. :D

-----

unit priority?.

i'll try. but i think it won't work. thanks. :)

Anyway, i guess i have to stick with setting my player 1 and 7 as computer players.

But if anyone knows how to do it. Please PM me. +rep.. :)
 

SerraAvenger

Cuz I can
Reaction score
234
Sorry Sir Ace. .. I thought you like that map. :p

'Coz you created a template for it. :D

-----



i'll try. but i think it won't work. thanks. :)

Anyway, i guess i have to stick with setting my player 1 and 7 as computer players.

But if anyone knows how to do it. Please PM me. +rep.. :)

Just do a trigger
Code:
event - a unit is attacked
condition - unit is of type hero
actions - pick every unit in range 1200 of attacked unit matching ( owner of matching unit is an ally of attacked unit and is a computer player ) and do:
 order picked unit to attack attacking unit

should do the job
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> you created a template for it

I remember. I blame SD_Ryoko.

Either way though, a problem description like "how do I make <spell> from <unit> like in <map name>" doesn't make any sense to people that have never seen that map, or unit, or spell...


> should do the job

Not really.
The problem being that they will forget what they actually wanted to do: getting to the other side.
Sooner or later, and better sooner, they should forget the Hero and continue.
 

SerraAvenger

Cuz I can
Reaction score
234
> you created a template for it

I remember. I blame SD_Ryoko.

Either way though, a problem description like "how do I make <spell> from <unit> like in <map name>" doesn't make any sense to people that have never seen that map, or unit, or spell...


> should do the job

Not really.
The problem being that they will forget what they actually wanted to do: getting to the other side.
Sooner or later, and better sooner, they should forget the Hero and continue.

Then poll until the enemy hero is a) dead or has b) moved more than 2500, and then revive their task
 

NineClick

New Member
Reaction score
11
Sir Serra, i already did that.

The problem is, the unit forgot the first order. And that is to attack-move to a region.

Can you help me on this?
 

SerraAvenger

Cuz I can
Reaction score
234
Sir Serra, i already did that.

The problem is, the unit forgot the first order. And that is to attack-move to a region.

Can you help me on this?

As I said, you'ld need to save the target point of the order, poll ( a 1 second wait should be enough ) until the enemy hero is dead, all the creeps are dead or the enemy hero has fled.
Then you need to pick the units and reorder them to attack the saved position.
EDIT: You can use PUI by Cohadar for this
just do in the map header:
//! runtextmacro PUI_PROPERTY( "private", "location", "TargetPoint", "null" )
And then whenever you issue a creep to attack the certain location, use
Code:
Custom script: set TargetPoint[ *your unit variable* ] = *your location variable*
and in order to retrieve the location, use
Code:
Custom script: call IssuePointOrderLoc( *your unit variable*, "attack", TargetPoint[ *your unit variable* ] )

hth, davey
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
Sorry Sir Ace. .. I thought you like that map. :p

'Coz you created a template for it. :D

-----



i'll try. but i think it won't work. thanks. :)

Anyway, i guess i have to stick with setting my player 1 and 7 as computer players.

But if anyone knows how to do it. Please PM me. +rep.. :)

thinking is not the same as trying...

even if you play melee games.. when you have a unit that attack an enemy hero.. all allied units nearby to said hero around it will attack the attacking unit.

I guess you don't believe that a simple tweak at a unit property won't work. and you want monster trigger just to make you satisfied.

btw.. I use unit priority(of course it works).. that is why I advised it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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

      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