PDA

View Full Version : Need help


blood_leach
12-23-2005, 11:20 AM
i need help im trying to make a trigger that is evre time i kill one zergling i get 10 ore and gas i tryed

CONDITIONS:
player 1 kills exactly 1 zerg zergling
ACTIONS:
modify resources for player 1:Add 10 ore and gas

i did this code but it only plays it once so when i kill another one it didnt give me ore and gas i need it to keep repeating so that evre time i kill a zergling i get 10 ore and gass

JarquaFelmu
12-23-2005, 11:53 AM
Welcome to WB's blood_leach,

Your gonna want to put a "Preserve Trigger" Action under your mineral one, that should make it work.

blood_leach
12-23-2005, 12:08 PM
Welcome to WB's blood_leach,

Your gonna want to put a "Preserve Trigger" Action under your mineral one, that should make it work.

i did but it still dont work all it does is add 10 ore and gas evre second until i kill another zergling

Aqo
12-23-2005, 1:02 PM
The whole trigger is wrong, here's what you should do (please pay attention to every word):

Players:
The zergling killing player

Conditions:
Current player Kills score is exactly 50.

Actions:
Modify score for Current player: Subtract 50 Kills.
Modify resources for Current player: Add 10 Minerals and Vespene Gas.
Preserve trigger.

You would have to use hyper triggers for this to work properly, and if you have units that do splash damage you'll have to add some more version of this trigger, with 100, 150, etc.

blood_leach
12-23-2005, 1:48 PM
The whole trigger is wrong, here's what you should do (please pay attention to every word):

Players:
The zergling killing player

Conditions:
Current player Kills score is exactly 50.

Actions:
Modify score for Current player: Subtract 50 Kills.
Modify resources for Current player: Add 10 Minerals and Vespene Gas.
Preserve trigger.

You would have to use hyper triggers for this to work properly, and if you have units that do splash damage you'll have to add some more version of this trigger, with 100, 150, etc.


this is still rong i just noticed the script does it for evre unit not just the zerg zerglings basicly i want

kill a zergling = 10 ore and gas

kill a Hydrodisk = 20 ore and gas

kill a Ultrlisk = 100 ore and gas

but i want it to repeat this script not just play it once:cry:

JarquaFelmu
12-23-2005, 10:30 PM
then what your going to have to do is make copies of the trigger and make it so instead of exactly "50" it's lets say "100" and just keep going, yes it's going to be long, and there is going to be alot of them.

Aqo
12-24-2005, 3:22 AM
this is still rong i just noticed the script does it for evre unit not just the zerg zerglings basicly i want
...
Did you even try to make the trigger I posted?
It will only work for the Zergling, and it will repeat itself.

For a Hydralisk, put 350 in the score, and for Ultralisk put 1300.

blood_leach
12-24-2005, 5:00 AM
yes i did

it worked but it done it for evre unit on the map

and this is why i posted this thred because im tryig to find a easyer way

than just keep putting

Condition
Player 1 kills exactly 1 zerg zergling
Actions
modify resources for player 1:Add 10 ore and gas

then just adding 1 to the kill exactly this would take long if you have 54 zerglings in the map.:(

Condition
Player 1 kills exactly 2 zerg zerglings
Actions
modify resources for player 1:Add 10 ore and gas

...
Did you even try to make the trigger I posted?
It will only work for the Zergling, and it will repeat itself.

For a Hydralisk, put 350 in the score, and for Ultralisk put 1300.

i would use this if i new the kill scores for evre unit in star craft

how do you know the scores then it will be helpfull to me

Aqo
12-24-2005, 6:21 AM
Just open up Arsenal III...

blood_leach
12-24-2005, 7:12 AM
Just open up Arsenal III...

Whats that?

Aqo
12-24-2005, 9:32 AM
http://www.starcraft.org/downloads/CustomsDownloads/Beginners/Arsenal%20III

Basan
12-25-2005, 2:49 PM
I'm not sure where but at SEN have got a "SC score list.txt" file somewhere there... if you do a search for it, you'll most likely find it. ;)
Or as an alternative have the SC Trigger tool (http://www.staredit.net/index.php?download=880) since it does the kill scores triggers for ya (amongst others), if you don't exactly know how. After that, learn how they were made n' start doin'em for yourself too. :)

Oh... and btw, welcome to WB's, Blood_Leach (if I haven't wished it before to ya, that is). I hope that you enjoy it as most of us do anyway. ^_~

JarquaFelmu
12-25-2005, 4:35 PM
I'm not sure where but at SEN have got a "SC score list.txt" file somewhere there...

ROFL!!!! What the crap, lol I was looking at my computer's desktop today and I found the score txt on it, lol! here it is:

Basan
12-26-2005, 12:24 PM
See? Now ya saved me from looking for it at my laptop... since yesterday was posting at a family member's PC. :smirk:

blood_leach
12-26-2005, 2:33 PM
ok thx for helping me now i can finish my rpg map