Staredit Network

Staredit Network -> UMS Assistance -> Different ressources for different unit kills
Report, edit, etc...Posted by TiQ.DanY. on 2004-09-21 at 13:13:37
Hi there!

You re my last chance to get my Rpg map finished without writing bout 4000 triggers sad.gif

basically i need a kill scoring system (ressources for kills). so if player x kills a ling he should get y minerals, while if he kills a hydra he should get z minerals. imagine this for every player and every unit-type.

so the only way to do this correctly is this:

C: Player X kills at least 1 Ling.
A: Modify Ressources for Player X: Add 5 Ore.

C: Player X kills at least 2 Ling.
A: Modify Ressources for Player X: Add 5 Ore.

............

........

....

u see that this goes boring, if i do it for every unit and till at least 1000 because there will be a lot of units during the game.

so i tried to work out a more efficient system:
(i work on german editor, so i dont know the exactly words for the triggers)

C:
Player Z(opponent) must suffer exactly 1 death of Zergling
Actual Players "killed units and buildings" points are at least at 1

A:
Set points for actual player: Set killed units and buildings to 0.
add ressources: 5 Ore.
total death counts for Zergling: Set to 0.
preserve trigger.

This is really a perfect system, it worked if i tested it. didnt matter how much units i killed at one moment or anything else. works perfect, but .....

Now if there is more than 1 player, lets say 2 for the first ..

Player 1 Kills a Zerling and a Hydra, then Player 2 kills a Zergling.
(Player 1 should get 5 ore for ling, and 10 ore for hyd, makes 15 ore, while player 2 should get 5 ore.)

Now player 1 gets 5 ore for zergling, but because after that kill his points are set to 0, player 2 (whos points are now at least 1) gets the points for the Hydra. (And the next player who kills anything would get 5 ore from player 2's zergling)

Is it possible to improve this system a litte, so that everything goes correctly if there is more than 1 player?

Thank You !
Report, edit, etc...Posted by IsolatedPurity on 2004-09-21 at 13:25:10
"actual player" means current player?

total death counts for Zergling: Set to 0.
Set points for actual player: Set killed units and buildings to 0.
add ressources: 5 Ore.

I might switch it to that order...
but I don't see why it wouldn't work... I have something pretty similar and it works with multiple players.

Did you test it with 2 players and know it doesn't work when more people are involved?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-09-21 at 13:35:18
Try looking into this
http://www.staredit.net/index.php?showtopic=1732
but unless your good I doubt you will be able to adapt the system.
Report, edit, etc...Posted by TiQ.DanY. on 2004-09-21 at 13:54:28
i explained why it doesnt work ..... and yes i tested it with 2 players. (the overall killscore is complete/good, but it doesnt matter which player killed what unit, so this gets wrong)

i already know the mycounter.scx map, but i dont get why this should help me? as said before, i dont want to have 1 or x ore for 1 kill. i wanted to have w ore for x unit, and y ore for z unit and so on ...
Report, edit, etc...Posted by (U)Bolt_Head on 2004-09-21 at 14:43:16
Mmm maybe im wrong, Guess i'll have to actually do the triggers cause i havn't bothered yet. The system should be able to be easly converted to detect what unit is killed.
Report, edit, etc...Posted by Kow on 2004-09-21 at 15:17:37
Are you usign hyper triggers? Plus use at least deaths of units and at least the exact kill score (like 50 kill score for ling... lemme find a link)
Report, edit, etc...Posted by xtremebob on 2004-09-21 at 16:06:50
The best way to do what you want to do is this:
null
Trigger
Players:
¤ Player X
Conditions:
¤ When Player X suffers Exactly 1 death of unit X
Actions:
¤ Set Death Count for player X: Set to 0 Deaths of Unit X
¤ Add X Resource
¤ Preserve Trigger

This is what I did for my Harvest Moon Map wink.gif
Report, edit, etc...Posted by Kow on 2004-09-21 at 16:25:59
but that doesnt work for multiple players!
Report, edit, etc...Posted by TiQ.DanY. on 2004-09-21 at 19:48:15
no its a very complex map .. so i dont use hyper triggers smile.gif

if i set it to AT LEAST, the trigger will repeat endless ...

and if i use the correct points value for that unit, it somehow doesnt work (a lot of more worse than setting to 0)

next post:

the trigger is nice, but it will give then rather one or all players the ressources for the kill.
Report, edit, etc...Posted by CheeZe on 2004-09-21 at 22:52:25
...why does it seem like I mentioned that kind of thing before... I think everyone is ignoring me cry.gif
Report, edit, etc...Posted by Vindexus on 2004-09-22 at 00:09:37
QUOTE(CheeZe(U) @ Sep 21 2004, 09:52 PM)
...why does it seem like I mentioned that kind of thing before... I think everyone is ignoring me cry.gif
[right][snapback]77137[/snapback][/right]


What kind of thing?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-09-22 at 02:26:43
Oh yeah i think i got the system working, I may need to modify it however
Report, edit, etc...Posted by CheeZe on 2004-09-22 at 07:59:58
The Thing he said, someone asked for a resource for every unit type of trigger and I gave that saying it was untested and stuff but no one seemed to care about it ... crazy.gif
Report, edit, etc...Posted by DT_Battlekruser on 2004-09-22 at 10:20:42
Vindxus> YOu need to add in Method 3 that you have to order triggers fom highes KP to lowest KP.
Report, edit, etc...Posted by .Coko[CK] on 2004-09-22 at 12:21:00
You can make sure that only the player who kills gets it because for that brief second they will have an increased kill score, as well as you make sure kill score are reset when someone other than the Computer gets the kill, just have a switch or something for each player activate if its met, then do it for that player, with as little amount of triggers as possible and there you go.

I'd use Hyper Triggers if you've got limited or no Waits within your map, maybe replace a few? And then you can run it fast for many players.
Report, edit, etc...Posted by Thermo on 2004-09-23 at 22:44:18
Hmm this topic is kinda old but i guess i should mention it, my system is very easily modiyed so if you want it to give 800 minerals for a zlot and 10 for an ultra just specify the unit instead of using men or units or whatever.

Btw I released a made a newer version of the map that should make it easy for people to make their own with two triggers instead of what 18 or some absurd amount so could ya refer people to that one instead?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-09-24 at 01:19:28
I was working on it but my wrist is starting to give me massives amount of pain so i quit. I was pretty close, not many triggers didn't even look at your triggers smile.gif

When i finish it it will be like a hours worth or work spread out over like a month lol
Report, edit, etc...Posted by nyczdigga on 2004-09-24 at 10:02:56
There is a program called, "SC TRIGGER". It helps you make money for kills. Im sorry but i dnot know what is the site. Ill find it along the way and post it up.

EDIT: http://www.scindex.com/downloads/?mode=info&fileid=177
Report, edit, etc...Posted by (U)Bolt_Head on 2004-09-24 at 12:52:15
SC Trigger is in the download database here too.
Report, edit, etc...Posted by .Coko[CK] on 2004-09-24 at 14:53:45
For a single player it wouldn't be hard at all, but its for multiple players where it gets harder, for single you could work off the death amount of units...
Report, edit, etc...Posted by Ninja)be( on 2004-09-25 at 16:10:15
c: player x kills exactly 1 zergling
a: add 5 ore
preserve trigger

tongue.gif tongue.gif tongue.gif tongue.gif tongue.gif
c: player x kills exactly 1 hydra
a: add 10 ore
preserve
Report, edit, etc...Posted by Vindexus on 2004-09-25 at 18:54:15
QUOTE(Ninja)be( @ Sep 25 2004, 03:10 PM)
c: player x kills exactly 1 zergling
a: add 5 ore
preserve trigger

tongue.gif                  tongue.gif                         tongue.gif                         tongue.gif                       tongue.gif
c: player x kills exactly 1 hydra
a: add 10 ore
preserve
[right][snapback]78806[/snapback][/right]



You replied to a lot in this forum today. I'm gonna read your posts, I hope they're not all as insubstantial and unhelpful as this one.
Report, edit, etc...Posted by DT_Battlekruser on 2004-09-25 at 19:29:22
To bad, they are mad.gif . I reported one of his posts.
Next Page (1)