QUOTE(R0y- @ Jan 12 2006, 07:23 PM)
~~This sounds like Line Tower Wars from war3~~
I'm not sure what you're asking really.. You're wondering how to not subtract the custom score? I don't know how it's possible when you have "add x custom score" in triggers.
You're real problem is making it so the player receives the exact amount of money the custom score equals into minerals. I don't think you can do this with a single trigger. What I would do is go through and make every single trigger for every income possibility. ex.
| Trigger |
| Players: |
| ¤ Player X |
| Conditions: |
¤ Current Player has Custom Score of 1
|
| ¤ (other conditions) |
| Actions: |
¤ Modify resources for Current Player: add 1 mineral
|
| ¤ (other actions) |
You would have to go through to the maximum income which would take forever, unless of course there is another way that I am unaware of.
[right][snapback]404252[/snapback][/right]
actually from where i c it its more complex than that becuz as you said he had a score of seven then brings 5 marines he nows have 12 with that trigger u made roy he has 1 custom score and he will only recieve 1 mineral and that's it, and if you preserve the trigger in the first custom it will keep giving minerals
ok my solution:
assuming the countdown/timer/wait w/e it is is now 0 and reached the limit
TRIGGER 1
CONDITIONS
+player x score(custom is) at least 1
+countdown/timer/wait conditions are met
ACTIONS
set switch 1
preserve trigger
TRIGGER 2
CONDITIONS
switch 1 is set
player x custom score is at least 1
ACTIONS
substract 1 custom score
create 1 (any unit you want) at location (a location far away from game area)
preserve trigger
TRIGGER 3
CONDITIONS
player x custom score is exactly 0
player x brings at least 1 (unit that was created before) at (location)
ACTIONS
clear switch 1
set switch 2
preserve trigger
TRIGGER 4
CONDITIONS
switch 2 is set
player x brings at least 1 (unit) at (location)
ACTIONS
add 1 custom score for player x
add 1 mineral
preserve trigger
TRIGGER 5
CONDITIONs
player x brings exactly 0 any units to (location)
ACTIONs
clear switch 2
preserve trigger
what we went thorugh here?
when the timer was 0 we detected that the player actually had score and activated a switch, this switch was activated to convert the custom scores into units that would be created in a place where no other unit in the map will mess up the trigger i suggest in the corners, then when the player had no custom score left the switch was cleared and another switch was set, this new switch would convert the units that we created before into minerals and it should also give back the custom score we substracted before and converted it to units
suggestions:
the unit should be something like a drone or something a unit that is not being in use, make another big location covering that actual spawning location so when a player brings a flyer unit it gets moved to mid or anywhere else, or else if you got no flyers just add water in terrain