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,462
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.

      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