[AI] Experience Sharing

Status
Not open for further replies.
Level 15
Joined
Jul 6, 2009
Messages
889
I guess this sort of relates to AI, how do you make a player share experience with allied players. Like in DotA (or any AoS) or example, you stand near a tower. It kills everything and you get experience, even if you didn't attack the creeps at all.

The AoS I am working on currently only gives experience only if I deal damage to a creep, if I just stand and not attack. I don't get any experience.

How do I make it give experience?

The 'player' ("Panda Elite Force") is allied with me and is on my force.

I've even:
JASS:
                call SetPlayerAlliance( Player(6), p, ALLIANCE_SHARED_SPELLS, true )
                call SetPlayerAlliance( Player(6), p, ALLIANCE_PASSIVE, true )
                call SetPlayerAlliance( Player(6), p, ALLIANCE_SHARED_XP, true )
                call SetPlayerAlliance( Player(6), p, ALLIANCE_SHARED_VISION, true )
                call SetPlayerAlliance( Player(6), p, ALLIANCE_HELP_REQUEST, true )
                call SetPlayerAlliance( Player(6), p, ALLIANCE_HELP_RESPONSE, true )
                
                call SetPlayerAlliance( p, Player(6), ALLIANCE_SHARED_SPELLS, true )
                call SetPlayerAlliance( p, Player(6), ALLIANCE_PASSIVE, true )
                call SetPlayerAlliance( p, Player(6), ALLIANCE_SHARED_XP, true )
                call SetPlayerAlliance( p, Player(6), ALLIANCE_SHARED_VISION, true )
                call SetPlayerAlliance( p, Player(6), ALLIANCE_HELP_REQUEST, true )
                call SetPlayerAlliance( p, Player(6), ALLIANCE_HELP_RESPONSE, true )

Done that (i just extracted it from my loop). Still no experience.


Experience Gain Range is 1400.
Experience Global Distrubution is off. But I'm within range of the enemy. Infact, I ordered a 'move' order onto it so I wouldn't attack it automatically. STILL NO XP :(


No delete button? Solved by myself.
 
Last edited:
Status
Not open for further replies.
Back
Top