• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[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.
Top