Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: A question concerning kills to cash
A question concerning kills to cash
This topic is locked. You can no longer write replies here.
Aug 31 2010, 4:12 am
By: l3lack-l3ahamut  

Aug 31 2010, 4:12 am l3lack-l3ahamut Post #1



During the process of testing my defense map, I noticed that I was receiving about twice as many minerals as I should have. I am wondering if there is any known issues with my kills to cash system... Theoretically it should operate in this order...

- Player kills unit(s) [lets say 5]
- first binary countoff subtacts the value of 4 of the units from the players kill score [in this case an overlord 4 x 200]
- 4 points are added to a dc which will convert to minerals pending another check which is irrelevent
- second countoff skips over
- third countoff subtracts the remaining 200
- adds 1 to the same dc
- the dc should at this point be converted to minerals using binary countoffs

I am almost certain I didn't make a typo in my triggers so I was wondering if it was possible that the countoffs are triggering a second time before the kill score is updated?

Post has been edited 1 time(s), last time on Aug 31 2010, 4:18 am by l3lack-l3ahamut.



None.

Aug 31 2010, 4:26 am Aristocrat Post #2



I am almost certain that mineral adding triggers are ran for more than one player. Put in "display text message" in the countoffs and mineral conversions for debugging and tell us what happens.



None.

Aug 31 2010, 4:29 am l3lack-l3ahamut Post #3



I will test this, however I was testing alone when this happened, so these could not have run for any other player.

Code
Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
    Deaths("Player 7", "Cave", Exactly, 1);
    Score("Current Player", Kills and razings, At least, 800);

Actions:
    Set Score("Current Player", Subtract, 800, Kills and razings);
    Set Deaths("Current Player", "Norad II (Crashed Battlecruiser)", Add, 4);
    Preserve Trigger();
}

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

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
    Deaths("Player 7", "Cave", Exactly, 1);
    Score("Current Player", Kills and razings, At least, 400);

Actions:
    Set Score("Current Player", Subtract, 400, Kills and razings);
    Set Deaths("Current Player", "Norad II (Crashed Battlecruiser)", Add, 2);
    Preserve Trigger();
}

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

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
    Deaths("Player 7", "Cave", Exactly, 1);
    Score("Current Player", Kills and razings, At least, 200);

Actions:
    Set Score("Current Player", Subtract, 200, Kills and razings);
    Set Deaths("Current Player", "Norad II (Crashed Battlecruiser)", Add, 1);
    Preserve Trigger();
}


These are my kill score count offs.
- Cave tracks what the current level is so that it only subtracts the kill score during the appropriate level.
- First level is the regular overlord which has a killscore of 200...
- Adds to Norad II which is used in the triggers below to convert into minerals.

Code
Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
    Deaths("Current Player", "Ion Cannon", Exactly, 1);
    Deaths("Current Player", "Norad II (Crashed Battlecruiser)", At least, 2);

Actions:
    Set Deaths("Current Player", "Norad II (Crashed Battlecruiser)", Subtract, 2);
    Set Resources("Current Player", Add, 2, ore);
    Preserve Trigger();
}

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

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
    Deaths("Current Player", "Ion Cannon", Exactly, 1);
    Deaths("Current Player", "Norad II (Crashed Battlecruiser)", At least, 1);

Actions:
    Set Deaths("Current Player", "Norad II (Crashed Battlecruiser)", Subtract, 1);
    Set Resources("Current Player", Add, 1, ore);
    Preserve Trigger();
}


and these convert the dc Norad II into minerals...
- Ion Cannon is the irrelevent dc which is used to alter the amount of minerals under special situations which was not present
- Norad II is again or at least should be an accurate number of kills the player has made.

Post has been edited 1 time(s), last time on Aug 31 2010, 4:42 am by l3lack-l3ahamut.



None.

Aug 31 2010, 4:49 am Aristocrat Post #4



Replace Kills and Razings with just Kills; see if that fixes the problem.

Your glitch is giving you 10 minerals instead of 5, I take it?



None.

Aug 31 2010, 5:04 am l3lack-l3ahamut Post #5



I am happy to say that small change did the trick, thank you. I would never have guessed that was the culprit.

Post has been edited 1 time(s), last time on Aug 31 2010, 5:17 am by l3lack-l3ahamut.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Burlagn06, Roy