Staredit Network

Staredit Network -> UMS Assistance -> "Preserve Trigger" Problem
Report, edit, etc...Posted by Kroxigor on 2005-12-21 at 16:16:40
Heres the deal: I want Player1 to get 1 mineral for every enemy he kills an enemy.

There a 2 problems:

Problem 1:

Condition: - Player 1 kills atleast 1 any unit

Action: - Modify resources for Player1: Add 1 mineral.
- Preserve Trigger.

* The problem with this one is that if i kill one guy with the preserve trigger enabled, Player1 gets 1 mineral every second even though player1 killed only 1 enemy.

Problem2:

Condition: - Player 1 kills atleast 1 any unit

Action: - Modify resources for Player1: Add 1 mineral.

*The problem with this one is without the preserve tirgger, i can only get 1 mineral throught the whole game no matter how many kills player1 gets. player1 kills his first enemy and he gets one min, but because there is no preserve trigger, player1 cannot get any more minerals from killing nay other enemy.


All i need it to basically get player1 get 1 mineral for every kills player1 gets.

plz help if you can thank you very much.

Report, edit, etc...Posted by KaboomHahahein on 2005-12-21 at 16:19:06
It is because you killed at least one person so then it activates the trigger so it keeps adding a minerall once you kill at least one person.

Use these kills to cash tutorials to help you solve
http://www.staredit.net/index.php?tutorial=81

More complicated but "perfect" way
http://www.staredit.net/index.php?tutorial=25
Report, edit, etc...Posted by Oo.Vic.oO on 2005-12-21 at 17:15:03
This is what you should do:

Condition:
Current player kill score is at least 1

Action:
Set kill score to 0
Add 1 mineral
Preserver Trigger
Report, edit, etc...Posted by Centreri on 2005-12-21 at 18:51:02
That would work, but it won't work with splash.
You can use SCTrigger, I think it works with splash but it increases file size dramatically.
Report, edit, etc...Posted by KABOOM on 2005-12-21 at 21:58:15
then just compress the map biggrin.gif
Report, edit, etc...Posted by Centreri on 2005-12-22 at 08:17:57
I tried to compress a map, but it didn't work.. I compressed it into .Zip file and the file size increased.

I think .scx is already completely compressed more often then not.
Report, edit, etc...Posted by Joshgt2 on 2005-12-22 at 15:44:53
Compress the map by using something like Uberation... there is a little compressor program on there that compressed things really easily biggrin.gif
Report, edit, etc...Posted by Friut on 2005-12-22 at 18:41:42

Trigger
Description:
o_o
Players:
¤ Player (?)
Conditions:
¤ (Player) Kills atleast 1 Men
¤ (Enemy Player) Suffers the death of aleast 1 Men
Actions:
¤ Modify Death counts for (Enemy Player): Subtract (#) Men
¤ Modify Recources for (Player): Add (#) Recource.
¤ Preserve Trigger
¤ Comment : (What ever)

Report, edit, etc...Posted by EdAi on 2005-12-22 at 18:57:07
proedit compresses...

and i dunno if SCTrigger works with splash...
but SCTrigger is good none the less
Report, edit, etc...Posted by Snipe on 2005-12-24 at 10:42:54
Do you want to know why you have -16 mins... DOn't spam in random topics.. like i'm doing right now.. Bad choice.. Your is worse though.
Report, edit, etc...Posted by fritfrat(U) on 2005-12-24 at 11:55:58
Chriz, what you wrote won't work. If you have 5 players on your team, and they all have 1 kill, every single one of them will receive a mineral for every kill after that..

I would just recommend SCTrigger for this case.
Report, edit, etc...Posted by BLISSARD[VdD] on 2005-12-24 at 16:38:09
LOL hahah, that was something had happened to me when I was a noob map maker. biggrin.gif

Little Tips:
*You need to think more about your thinking when you do the triggers
so you won't have any problems and waste time for it when the triggers mess up.

*Dude think about the condition if it work, or not, or maybe keep repeating, etc.
Next Page (1)