Staredit Network

Staredit Network -> UMS Assistance -> Kills to leaderboard to resources
Report, edit, etc...Posted by animaljr on 2004-10-09 at 17:02:08
I'm making an RPG somewhat like the DBZ maps (if you have ever seen them). Simply put, I want to make certain units have a certain amount of experience gained, and then have certain level gains at certain experience.

Here it is:
Player 1 kills a zergling. Therefore, player 1 gets 500 experience. Once player 1 gets a total of 10,000 experience, he gains a level (and gains 2 minerals).

How could I go about making a trigger for the units (there will be 12+ units) to get experience, and then for the experience to be converted into minerals?

I'm attaching a very basic, new, map that I'm working on...
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-09 at 17:07:16
WHat triggers are you using so that a player gets 500 exp for killign a Zergling?
Report, edit, etc...Posted by PCFredZ on 2004-10-09 at 20:10:52
Players: Force 1
Conditions: Current player's Kills and Razings Score is at least X
Effects: Modify Score for Current Player: Subtract X Kills and Razings
Effects: Modify Score for Current Player: Add (X times 10) Custom

The above will, in a perfect universe, magnify a Zergling's 50 K/R Score to the 500 you wanted. In this sucky, glitched universe WE live in, you actually have to add "X times 5 Custom". Why? That's what I've been trying to find out ( pinch.gif and DT Battlekruser didn't solve THAT problem either tongue.gif ).
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-09 at 21:29:13
Anything wrong with Score is at least 50, then add 500 score???
Report, edit, etc...Posted by PCFredZ on 2004-10-09 at 21:36:04
Try it, I'm certain you'll end up with 999 score instead.
Report, edit, etc...Posted by animaljr on 2004-10-10 at 11:42:29
Here are my triggers that I use for the leader board and gaining experience and gaining levels...

This is creating the leader board and giving initial experience points for the three players
Players: Force 1
Condition: Always
Action: Show leader board for most buildings - Display label "Matrix Experience"
Action: Disable use of computer players in leader board
Action: Modify score for player 1: set to 4000 buildings
Action: Modify score for player 1: set to 5000 buildings
Action: Modify score for player 1: set to 6000 buildings

This is gaining 500 experience for killing a dragoon
Players: Force 1
Condition: Current player kills at least one protoss dragoon
Action: Modify score for current player - add 500 buildings
Action: Perserve trigger

This is gaining a level for a certain amount of experience
Players: Force 1
Condition:
Action: Current building score at least 1000 buildings
Action: Display for current player "You have gained a level"
Action: Play "Kung Fu.wav"
Action: Modify score for current player - add 2 minerals


Now, what I want to be able to do is add 2 minerals each time they make a level. And when they go to upgrade their weapons and armor they don't actually spend the minerals, but have to have a specific number to be allowed to upgrade. Do I need to make the minerals 'add 2 custom' intead of minerals?

If it would be helpful, I can attach the DBZ map that I'm using to try and learn these triggers... And by the way, I appreciate everyone's help on this!
Report, edit, etc...Posted by .Coko[CK] on 2004-10-10 at 13:31:27
Your not setting the score back down, so therefore, if you kill one protoss structure, it will keep adding score, you have to set deaths for that players building back to zero.
Report, edit, etc...Posted by animaljr on 2004-10-10 at 13:38:31
Okay, this is what I have now...

This is creating the leader board and giving initial experience points for the three players
Players: Force 1
Condition: Always
Action: Show leader board for most buildings - Display label "Matrix Experience"
Action: Disable use of computer players in leader board
Action: Modify score for player 1: set to 4000 buildings
Action: Modify score for player 1: set to 5000 buildings
Action: Modify score for player 1: set to 6000 buildings

This is gaining 500 experience for killing a dragoon
Players: Force 1
Condition: Current player kills at least one protoss dragoon
Action: Modify score for current player - add 500 buildings
Action: Modify death counts for current player - set to 0 for protoss dragoon
Action: Perserve trigger

This is gaining a level for a certain amount of experience
Players: Force 1
Condition:
Action: Current building score at least 1000 buildings
Action: Display for current player "You have gained a level"
Action: Play "Kung Fu.wav"
Action: Modify score for current player - add 2 minerals
Report, edit, etc...Posted by Mini Moose 2707 on 2004-10-10 at 13:45:18
That still won't work. You're modifying the death count for Current Player when he has not suffered a death of a Dragoon. There is no trigger to modify # of kills of a unit.
Report, edit, etc...Posted by animaljr on 2004-10-10 at 13:59:00
I see that now... I'm having another problem too... Once I kill the unit, I get experience, and even if I stop killing the experience continues to increase... Would it help if I attached the map that I am trying to mimic the triggers from? Then maybe someone could explain it to me?

Maybe I am in a little over my head with trying to create this set of triggers...
Report, edit, etc...Posted by PCFredZ on 2004-10-10 at 16:25:23
I had a similar thread about giving the exact number of Minerals for Kills and Razings. Once again I repeat: it works weird. -.-;

Not just NORMAL weird either... kill a ling, get 98 Minerals?? :wt censored.gif e:

Let me explain in details...

If Cur. Player's K/R (Kills and Razings) score is at least "X"
If Cur. Player's K/R score is at least "X times 2 minus 1"
Subtract K/R Score for Cur. Player: Subtract X
Add Custom Score for Cur. Player: Add X
Add Minerals for Cur. Player: Add X

Let X be 2, 4, 8, 16... up to, say, 4096.

The result is, like I said, kill a Zergling (50 K/R score), get 98 Minerals. Don't ask me how that works out, I've tried and failed miserably. The lesson is (quoting Homer Simpson): NEVER TRY.
Report, edit, etc...Posted by animaljr on 2004-10-15 at 14:12:29
Well, I don't want to go straight from kills to minerals...

I want to convert kills into experience on teh leaderboard and then the experience needs to be converted into minerals... Here is the map that I'm trying to mimic...
Report, edit, etc...Posted by .Coko[CK] on 2004-10-15 at 14:35:25
You can replace the Minerals with whatever you want, thats not the important bit, its how it makes sure you get the right amount for your kills that is the major bit!
Next Page (1)