Staredit Network

Staredit Network -> UMS Assistance -> How do I do this?
Report, edit, etc...Posted by Staredit.Net Essence on 2004-12-16 at 18:52:08
I need to know how to prevent the players in my map from getting infinite minerals when they going infinite and just cap the maximum minerals at 999,999. Please tell me how.
Report, edit, etc...Posted by chuiu on 2004-12-16 at 19:03:35
I think what you want to do is this:

Trigger for All Players

Conditions:
Current player accumulates at least 1000000 Minerals.

Actions:
Modify resources for Current player: Subtract 100 Minerals.
Preserve trigger.


And then that will happen about once every second or so. You can change the 100 to an number you find reasonable.
Report, edit, etc...Posted by DT_Battlekruser on 2004-12-16 at 19:03:50
Uhhh

Trigger
Conditions:
¤ Current Player has at least 1000000 Minerals
Actions:
¤ Set minerals for current player to 999999
¤ Preserve trigger


Liek that?

Damn Chu beat me to it.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-12-16 at 20:43:35
So that would work. But the editor wont go to a million only 999999 i think i can do it so that its at least 999999 and set to 999998: ) that should work only testin will prove though.
Report, edit, etc...Posted by BeeR_KeG on 2004-12-16 at 21:18:40
Make it at 999000. Remember that more than one mineral may come in at the same time thus you would get the millionth min(the infinite) before the trigger fires. Just make sure that you could never earn enough minerals at once that is greater than the Million minus the condition.

IE:

1 Million mins - Max amount of mins a player can get at once +1 mineral = The condition for that trigger

This way a player won't get infinite mins because he mined 8 minerals and it went over the limit before the trigger fired or got 10 mins via another trigger.
Report, edit, etc...Posted by DT_Battlekruser on 2004-12-16 at 21:56:41
QUOTE(Kept_Wheat @ Dec 16 2004, 05:43 PM)
So that would work. But the editor wont go to a million only 999999 i think i can do it  so that its at least 999999 and set to 999998: ) that should work only testin will prove though.
[right][snapback]111384[/snapback][/right]

Ever heardof Starforge? You can type in what ever you darn feel like --- I'm pretty sure.
Report, edit, etc...Posted by The_Blackness on 2004-12-18 at 08:34:17
this is only a thought but, when you are gathering minerals the counter at the top right goes up by ones, so if you had say 9 minerals, and you wanted to limit it to 10, and then the person brought back 8 minerals, so long as you have hypers the trigger should be able to fire before the counter can get over 10. tell me if im wrong i just thought this was an interesting idea.

Completely off topic: 100 posts, go me!
Report, edit, etc...Posted by TheOddAngel on 2004-12-18 at 09:36:00
make sure you have the trigger set for... AT LEAST ___ amount of minerals... if its exactly it wont work if they bring in 8... Then you put it at whatever and make the triggers as seen above...

When player_ gets at least 999999 minerals

Set player minerals to 999998
Preserve Trigger
Report, edit, etc...Posted by ChaosRyder on 2004-12-18 at 09:51:58
Yep pretty much all what the people said would work.
By the way I recomend changing you Skill level the average. IF you doun't know thins.(No offence just a suggestion!)
Report, edit, etc...Posted by chuiu on 2004-12-18 at 18:19:48
I wasn't really thinking when I posted but DT_BattleKrusers and TheOddAngels' solutions are better.
Next Page (1)