Trigger for 1 mineral each 10 kills

stefan1212

BattleForums Member
Joined
Aug 30, 2003
Messages
304
Reaction score
0
Location
.+*^*+.+*^*+.
i had it set for
Condition: Score : when player 1's score reaches 10
Action : Set Resources : Modify Resourses for player 1 +1 Ore

when i do that it only works once
then i do preserve trigger

and it jus keeps giving me +1 mineral like every second....


Also I was Wondering If theres a way to get Marines placed in location every 5 seconds

i have it set for always right now so it gives me marines every second pretty much but i dont want that many can neone help me?

this is my first map ever and im only 14

if not wheres another good site where i can get help on triggers??


Lwek's Notes: I appreciate you asking for help but next time don't post twice consecutively(double post). Rules
 

Taligaro

Furyan Merc
Joined
Jul 17, 2004
Messages
462
Reaction score
0
First off, you need to give the people here more then an hour to reply. I'd say wait at least a day. These people also really hate double posting... Anyways...


I've been working on this for weeks now with no luck, for my own map, and a little different method, but the end result would be the same.

I wish I could help you out, but I'm having the same problem. I want to have an experiance = minerals cash system. For every zergling killed, your experiance and minerals go up by 50. I've tried all the methods I know of, but it just keeps giving me minerals and experiance non stop when I use the preserve trigger. When I don't use preserve, it give me 50 minerals and experiance once, then never again.

Real annoying I say!
 

Sakuhta

BattleForums Senior Member
Joined
Jun 9, 2003
Messages
3,019
Reaction score
0
Location
Texas
The only way I could think of doing it is remaking the trigger for 20, 30, etc. kills. I see what the problem could be that the computer just thinks you want the mineral gain to start at 10... let me test it some and I'll get back to you.
 

stefan1212

BattleForums Member
Joined
Aug 30, 2003
Messages
304
Reaction score
0
Location
.+*^*+.+*^*+.
well thank u alot atleast now i no im not the only one suffering this problem

wut about the second Question?


Also I was Wondering If theres a way to get Marines placed in location every 5 seconds
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
You can download the map below that shows you the triggers that answers both of your questions or you can use this program for your first question:

ScTrigger
This program creates one of the hardest triggers in Staredit. Kills for cash. This program can create 100 triggers in a snap. You can create triggers that converts kills to minerals or gas.
Download ScTrigger
 

Heimdal

Member!
Joined
Jul 4, 2003
Messages
342
Reaction score
0
First Question:

CONDITION
Current player's kills score is at least 1
ACTION
Set custom score for current player: add 1
Set kills score for current player: set to 0
Preserve Trigger

CONDITION
Current player's custom score is at least 10
ACTION
Set minerals for current player : add 1 ore
Set custom score for current player: subtract 10
Preserve trigger

This should be used with hyper triggers to avoid multiple kills only being counted once.

Second question:

CONDITION
Always
ACTION
Create 1 marine for Player X at Location
Wait 5000 miliseconds
Preserve Trigger
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
But you see, as said in the first post, he is a new map maker. As a new map maker, you don't want to jump into the advance stuff too early. Your trigger requires the hyper trigger. He/She probably has no idea what that is so it's best if we stick with the basic and easy triggers first.
 

stefan1212

BattleForums Member
Joined
Aug 30, 2003
Messages
304
Reaction score
0
Location
.+*^*+.+*^*+.
my map is pretty insane its been a week and my maps really sloppy if u look in the triggers but u dun rely notice it in the game 2 much but i am a new map maker and i was wondering where i could go to learn about hyper trigger and all this stuff u guys talk about??
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
If you want me to help you on the map more, IM me on AIM at BFLwek.

-=Beginner's Explanation of Hyper Triggers=-
Hyper Triggers are triggers that only consist of one Preserve trigger action and atleast 6 Wait 0 Millieseconds actions. They can be for any player that is active in the game. Preferably a computer. For example, lets pretend that Player 8 is a computer:
PLAYERS
-Player 8
CONDITIONS
-Always
ACTIONS
-Wait 0 Millieseconds.
-Wait 0 Millieseconds.
-Wait 0 Millieseconds.
-Wait 0 Millieseconds.
-Wait 0 Millieseconds.
-Wait 0 Millieseconds.
-Preserve Trigger

Have atleast 3 of those triggers under Player 8. These 3 triggers makes all your triggers fire in a 'hyper' action. You've probably experienced that Creating a marine with a preserve trigger will only create one Marine ever second. Having the Hyper triggers will creat 7 or 8 Marines ever second.
Warning: Since you have the Hyper triggers under Player 8, don't have any other triggers with a wait action under Player 8.

-=How Hyper Triggers Work=-
I don't even FULLY know how they work. I know most of it, I think. I'm going to use this trigger for an example:
ACTIONS
-Create 1 Marine at 'Location' for Current Player.
-Preserve Trigger.

Even though it's under Preserve Trigger, a Marine will only be created about every second.
If you add a Waiting trigger:
ACTIONS
-Wait 1000 millieseconds.
-Create 1 Marine at 'Location' for Current Player.
-Preserve Trigger.

This forces the trigger to stop for 1000 millieseconds(or 1 second) before it can continue on with the other actions. While that trigger stops for 1000 millieseconds, it forces the game to check every other trigger before it can continue.
So you have the hyper trigger that contains atleast 6 Wait 0 Millieseconds. When it waits 0 millieseconds, the game has to check through all the triggers, if conditions are met, then the trigger will fire before the Hyper trigger continues.
Triggers:
Hyper trigger
and
PLAYERS
-Player 1
CONDITIONS
-Always
ACTIONS
-Create 1 Marine at 'Location' for Current Player.
-Preserve Trigger

Now think hard. The CONDITION 'Always' will always be met so the actions can be fired. And then you have the hyper trigger that forces every trigger to be checked every 0 millieseconds. So know you got a Marine being created at 'Location' for Current Player constantly(only about 7 or 8 every seconds).

Check map if you're having a hard time understanding words.
 

NewPosts

New threads

Top