Shared XP
Sep 2 2008, 9:25 pm
By: blacklight28  

Sep 2 2008, 9:25 pm blacklight28 Post #1



How do you make kill points the same for all players on one team. For example, if player 1 kills a zergling, everyone on player 1's team gets 50 points. How do you do this?



None.

Sep 2 2008, 11:50 pm rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

http://www.staredit.net/wiki/Resource_Sharing

Replace Resource with score of your type.

Do you want to have custom kills to cash, or leave it at 50 for lings, 25 for broods, 4000 for ikerris, etc...?



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Sep 2 2008, 11:53 pm Echo Post #3



You make the player to Force 1, Force 2, etc. It will set it to all players but it will multiply by the number of players in the forces. There is obviously a way to counter that.



None.

Sep 3 2008, 2:16 am PCFredZ Post #4



Quote from rockz
http://www.staredit.net/wiki/Resource_Sharing

Replace Resource with score of your type.

Do you want to have custom kills to cash, or leave it at 50 for lings, 25 for broods, 4000 for ikerris, etc...?
Resource sharing is much more complicated than it is. Just use a leaderboard for the Kills score; if one player has the most score, increment the score for all the other players until they all match.



None.

Sep 3 2008, 5:25 am blacklight28 Post #5



Is there a way to make the scores exactly even by somehow detecting exactly how much score the leader has and incrementing the others?



None.

Sep 3 2008, 7:24 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

my method is easy and works perfectly up to however much your binary countoffs are, and if you decide to subtract kills, that works too. It's only 4 triggers, 3 of which are binary countoffs.

I don't see a way to do it that wouldn't be remarkably similar to this method to begin with.

Will the players ever lose a score? Also, do you want custom scores (where brood is 1, ling is 50, kerri is 5)? If so, you'll need a kills to cash system, so you just add the score to the entire force, not current player.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Sep 3 2008, 10:28 pm blacklight28 Post #7



I don't want to use the resource sharing system for that because I need to use the resources for other things.



None.

Sep 4 2008, 12:30 am rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!

Quote from blacklight28
I don't want to use the resource sharing system for that because I need to use the resources for other things.
As I said before, replace resources with kill score. It works with ANY numerical value, including death counts.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Sep 7 2008, 3:03 am blacklight28 Post #9



Ok, well, I fixed the shared XP thing, but now I have XP being gained when player 7 (the town computer) kills enemy units. I have the triggers to only add leaderboard points to player 1-6 and before I had leaderboard points added to force 1. I have triggers to set player 7 to ally players 1-6 and players 1-6 to ally player 7.



None.

Sep 7 2008, 4:19 am rockz Post #10

ᴄʜᴇᴇsᴇ ɪᴛ!

Obviously, you don't. Post em.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Sep 7 2008, 6:06 am blacklight28 Post #11



Ok...

Code
Trigger("Heroes"){
Conditions:
    Always();

Actions:
    Leader Board Points("\x008*\x004Experience Points\x008*", Custom);
    Leaderboard Computer Players(disabled);
    Comment("Experience Points");

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Zerg Zergling", Exactly, 1);

Actions:
    Set Score("Player 1", Add, 1, Custom);
    Set Score("Player 2", Add, 1, Custom);
    Set Score("Player 3", Add, 1, Custom);
    Set Score("Player 4", Add, 1, Custom);
    Set Score("Player 5", Add, 1, Custom);
    Set Score("Player 6", Add, 1, Custom);
    Set Deaths("Player 8", "Zerg Zergling", Set To, 0);
    Preserve Trigger();
    Comment("Rabid Dog XP Points");
}

//-----------------------------------------------------------------//

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Zerg Broodling", Exactly, 1);

Actions:
    Set Score("Player 1", Add, 3, Custom);
    Set Score("Player 2", Add, 3, Custom);
    Set Score("Player 3", Add, 3, Custom);
    Set Score("Player 4", Add, 3, Custom);
    Set Score("Player 5", Add, 3, Custom);
    Set Score("Player 6", Add, 3, Custom);
    Set Deaths("Player 8", "Zerg Broodling", Set To, 0);
    Preserve Trigger();
    Comment("Baby Spider XP Points");
}

//-----------------------------------------------------------------//

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Zerg Zergling", Exactly, 2);

Actions:
    Set Score("Player 1", Add, 2, Custom);
    Set Score("Player 2", Add, 2, Custom);
    Set Score("Player 3", Add, 2, Custom);
    Set Score("Player 4", Add, 2, Custom);
    Set Score("Player 5", Add, 2, Custom);
    Set Score("Player 6", Add, 2, Custom);
    Set Deaths("Player 8", "Zerg Zergling", Set To, 0);
    Preserve Trigger();
    Comment("Rabid Dog 2 XP Points");
}

//-----------------------------------------------------------------//

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Zerg Broodling", Exactly, 2);

Actions:
    Set Score("Player 1", Add, 6, Custom);
    Set Score("Player 2", Add, 6, Custom);
    Set Score("Player 3", Add, 6, Custom);
    Set Score("Player 4", Add, 6, Custom);
    Set Score("Player 5", Add, 6, Custom);
    Set Score("Player 6", Add, 6, Custom);
    Set Deaths("Player 8", "Zerg Broodling", Set To, 0);
    Preserve Trigger();
    Comment("Baby Spider 2 XP Points");
}

//-----------------------------------------------------------------//

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Zerg Zergling", Exactly, 3);

Actions:
    Set Score("Player 1", Add, 3, Custom);
    Set Score("Player 2", Add, 3, Custom);
    Set Score("Player 3", Add, 3, Custom);
    Set Score("Player 4", Add, 3, Custom);
    Set Score("Player 5", Add, 3, Custom);
    Set Score("Player 6", Add, 3, Custom);
    Set Deaths("Player 8", "Zerg Zergling", Set To, 0);
    Preserve Trigger();
    Comment("Rabid Dog 3 XP Points");
}

//-----------------------------------------------------------------//

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Zerg Broodling", Exactly, 3);

Actions:
    Set Score("Player 1", Add, 9, Custom);
    Set Score("Player 2", Add, 9, Custom);
    Set Score("Player 3", Add, 9, Custom);
    Set Score("Player 4", Add, 9, Custom);
    Set Score("Player 5", Add, 9, Custom);
    Set Score("Player 6", Add, 9, Custom);
    Set Deaths("Player 8", "Zerg Broodling", Set To, 0);
    Preserve Trigger();
    Comment("Baby Spider 3 XP Points");
}

//-----------------------------------------------------------------//

Trigger("Heroes"){
Conditions:
    Deaths("Player 8", "Infested Kerrigan (Infested Terran)", Exactly, 1);

Actions:
    Set Score("Heroes", Add, 25, Custom);
    Set Deaths("Player 8", "Infested Kerrigan (Infested Terran)", Set To, 0);
    Preserve Trigger();
    Comment("Giant Spider XP Points");




None.

Sep 7 2008, 12:17 pm NudeRaider Post #12

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Well you base it on deaths. If P7 kills a P8 unit then his deaths go up too. Man was it THAT hard to figure out?

Take a method based on kills or kills score. But keep in mind, you can only subtract kills score, not the kills themselves!
I think you will need kills to cash perfect here. (check wiki for kills to cash methods)


Btw. you could keep your triggers if you followed another, kinda lame way. Regard is as a quick and dirty fix:
Don't let P7 kill any units. If P8 comes near town, just kill them via trigger, that doesn't add to the deaths.
Don't know how your town looks like, but making the defending units (best in bunkers) do 0 damage would enable you to place the killer location in weapon range, which won't look THAT lame. Also killing only 1 unit per trigger loop makes it also look a bit better.




Sep 7 2008, 10:26 pm blacklight28 Post #13



I had it working on deaths before. I had it so that if player 7 killed one of player 8's guys, it would subtract how ever many points the unit was worth from force 1's score then set player 8's deaths for that unit to 0. But that didn't work.



None.

Sep 7 2008, 10:46 pm rockz Post #14

ᴄʜᴇᴇsᴇ ɪᴛ!

The problem is how you tell that player 7 killed one of the guys. If you could do that, you wouldn't need anything special.

Take the score/deaths method of kills to cash. It will work perfectly. Set it up so that when player 7 kills people, you subtract the death and the score, but don't give any custom points to him.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Sep 8 2008, 12:13 am blacklight28 Post #15



I'll just do it the lame way. =/



None.

Sep 8 2008, 7:33 pm PCFredZ Post #16



Quote from blacklight28
I had it working on deaths before. I had it so that if player 7 killed one of player 8's guys, it would subtract how ever many points the unit was worth from force 1's score then set player 8's deaths for that unit to 0. But that didn't work.
Then you did something wrong. What you described would work very well if P7 and P8 are allied, in which case they would only kill each other via splash damage, which is very rare and can be countered by subtracting points as you described.



None.

Sep 8 2008, 7:36 pm NudeRaider Post #17

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from PCFredZ
Then you did something wrong. What you described would work very well if P7 and P8 are allied, in which case they would only kill each other via splash damage, which is very rare and can be countered by subtracting points as you described.
Just that P8 attacks P7 and they are enemies




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Zoan, Roy