Staredit Network

Staredit Network -> UMS Assistance -> Trigger Help!
Report, edit, etc...Posted by Darwin on 2006-07-12 at 06:32:07
This question is probably stupid but im new here.
So here is the problem:

I want to make RPG map. The Hero is Goliath and..... well this is not inportant.
I want to make trigger that activates when Hero kill specific unit. It should give him money (minerals). I tryed to make condition like this: Player 1 kils at least 1 Zerg Ultralisk.
Actions were like this: Add Player 1 500 minerals (or something like this); Preserve trigger.

Result: Hero kills Ultralisk and gets 500 minerals, but it get 500 more and 500 more....

Can you help me make trigger right? ermm.gif
Report, edit, etc...Posted by Grand_Dracolich on 2006-07-12 at 08:58:18
Check the tutorials. I don't know where they are though, so I'll help.

You're gonna have to have a trigger for each unit you can kill. Like:

For hero force
'Enemies' suffers at least 1 death of ultralisk

Modify death count for 'Enemies': subract 1 for ultralisk
Modify resources for 'Heros': add 500 minerals
preserve trigger

The problem was that you had 1 kill, and it added 500, but you still had that kill, so you kept getting 500. Use set deaths for the player(s) that have the unit. I've managed to generalize that trigger for a map I made like:

Enemy force suffers death

Set deaths for enemy force

It was a fast paced mass kind map, and it still worked to perfection. But Hyper triggers are almost nessicary for it to work quickly.
Report, edit, etc...Posted by Noober on 2006-07-12 at 11:24:05
Simple cash to kills that can be found in tutorials if you had looked:

Current player kill score is at least 1.
=====
Set score for current player: Set to 0 for kills.
Set resources: Add 500 minerals.
Preserve.
Report, edit, etc...Posted by Darwin on 2006-07-12 at 11:36:18
Thank you very much for your advice. It works for me and I hope that it will work for everyone else that reads this topic.

ADDITION:
QUOTE(Noober @ Jul 12 2006, 04:23 PM)

Current player kill score is at least 1.


Ahem....
That would give me 500 minerals for each kill. Even if I kill zergling I would get 500 minerals. I was looking for the way to get "set" amount of minerals for different monsters.

Thanks anyway.

P.S. Actually I don't know where tutorials are.
Report, edit, etc...Posted by Noober on 2006-07-12 at 11:42:49
Then you would have to use specific kill scores and give minerals. Such as, if your kill score is 50, that means you killed a zergling or something else with the same score, add 200 minerals instead. However, if you kill 2 zerglings at once, your score will be 100, and that's another unit. So... :/

Oh, tutorials is under the Mapping menu up top.
Report, edit, etc...Posted by Darwin on 2006-07-12 at 12:26:21
Thanks.

Now I have another problem. I want Player 1 (Hero) to have allies (computers) but if I put some units (allies) near and set them to be computer controlled they attack my units.
I put them in other force and set that force to allies but there is no effect.

Help....
Report, edit, etc...Posted by Doodle77(MM) on 2006-07-12 at 12:33:50
You need to use the trigger action "Set Alliance Status" to make the computers be allied with a human player.
Next Page (1)