HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

XP Gain from a certain player.

08-02-2008, 08:16 PM#1
Azhag
How do I make it so my heroes do not gain experience from a certain players units?
08-02-2008, 08:21 PM#2
darkwulfv
Use my EXP system. It will allow you to make a check just for that purpose as well as control the amount of EXP given, and so on.


If you don't want to use it, then I'm not sure there's a way...
08-02-2008, 10:44 PM#3
Ignitedstar
Well, I don't know. Let's look around. *looks in WE*

Hmm... I believe there isn't a way to get experience from units owned by a specific player. You're going to have to trigger it manually. Darkwulfv's experience system will do wonders for you, but if you're not looking for a system, you can use a value that a trigger can track right from the unit's data. For example, what I'm using is Point Value, because it normally doesn't serve any purpose in-game, only post-game.
08-02-2008, 10:47 PM#4
darkwulfv
No, he wants to make his heroes get NO experience from player X. My system does that by controlling all EXP gain, so he can just put a check in so that if Player X is the owner of the dying unit, nothing happens.

Hmm... I should probably update that system to vJASS w/ an extra feature or two.
08-02-2008, 11:59 PM#5
DioD
Untitled Trigger 001
Events
Conditions
Actions
Player - For Player 1 (Red), turn Experience sharing On toward Player 2 (Blue)
08-03-2008, 12:27 AM#6
darkwulfv
Something tells me that only works for, say...

Player 1 and Player 2 are allies. Player 1 kills a unit, Player 2 gets some EXP.

I don't think that's what he wants. The most logical situation he's referring to would be Player 1 kills one of Player 2's units and gets 0 exp.
08-03-2008, 02:09 AM#7
DioD
w8 for author reply first, we dont know what he actualy need.
08-03-2008, 04:28 AM#8
darkwulfv
Well it was so vague of a question that all we can do is provide like, 4 different answers.
08-04-2008, 03:17 AM#9
Azhag
Player 1's hero kills Player 10's Unit = Player 1's Hero No Experience.
Player 1's hero kills Neautral Hostile Unit = Player 1's Hero Gain Experience.

There are only 2 players on the map that can have heroes. Player 1 and 2. And there are 2 different enemies. Dark Green, and Neautral Hostile.
I want players to only gain experience from killing Neautral Hostile units, not Dark Green's units.

Hope that clears it up.
08-04-2008, 03:33 AM#10
darkwulfv
Ha, who was right?

Use my EXP system. It'll allow you to stop EXP gain from that player (by adding a check), but also it'll allow you to fully control just how much exp you give.
08-04-2008, 03:36 AM#11
Azhag
I was going to use your system.
I will give full credit on it.
:)
08-04-2008, 03:40 AM#12
darkwulfv
Make sure you watch for an update on it, I'll be updating it within a week or so.
08-04-2008, 03:41 AM#13
Azhag
Will do.
Thank you for allowing me to use your system.
08-05-2008, 06:22 AM#14
Pyrogasm
lolwut?

Someone using that system? XD
08-05-2008, 07:00 AM#15
DioD
I checked system, there is no need of everytime allow deny exp gain, just set exp range in gameplay constants to 0.