Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Map is doing 8x amount of minerals
Map is doing 8x amount of minerals
Oct 6 2009, 8:57 pm
By: Killer2121  

Oct 6 2009, 8:57 pm Killer2121 Post #1



I got a Diplomacy map im working on which uses switchs to make the citys give money..but no matter how hard i try it wont do it once. can anyone help me or tell me a diffrent way to do this.



None.

Oct 6 2009, 8:59 pm Norm Post #2



You most likely are running the trigger for All players, so it gives the money 1 time for each player present.



None.

Oct 6 2009, 9:01 pm Killer2121 Post #3



It is on all players but i was only there with 2 other computers.



None.

Oct 6 2009, 9:14 pm Echo Post #4



It includes computers. Seperate the "player" from "All Players" to checking all individual human players.



None.

Oct 6 2009, 9:18 pm Killer2121 Post #5



i did that and it still did 8x the amount insted of 250 it was 2000



None.

Oct 6 2009, 9:20 pm Norm Post #6



Can you give us some more information about how you have your trigger set up?



None.

Oct 6 2009, 9:24 pm Echo Post #7







None.

Oct 6 2009, 9:26 pm ClansAreForGays Post #8



Are you using "current player" everywhere you should be? (which is always everywhere)




Oct 6 2009, 9:26 pm Killer2121 Post #9



Map is a Diplomacy
Trigger setup is like this

Condition:
Timer is at least 2 (tried at most with it)
Action:
Set Switch City
Preserve Trigger
-------------------------
Condition:
Switch City is set
Current Player brings at least one building to City
Player 7 Brings 0 buildings to city
Action:
Display City
Add 250
Clear Switch City
Preserve Trigger
--------------------------
thats how the two triggers are set



None.

Oct 6 2009, 9:31 pm ClansAreForGays Post #10



nvm, im currently dizzy.




Oct 6 2009, 9:32 pm Killer2121 Post #11



i always use Current Player -.-



None.

Oct 6 2009, 9:37 pm XGenesis Post #12



Move Clear Switch City to the first action on the list :P
^ This might not work, but give it a try



None.

Oct 6 2009, 9:38 pm Vrael Post #13



If you copy paste the trigger exactly from SCMDraft's text editor, it will be helpful. "Add 250" does not give us much information as a trigger action.

Since it is giving the money 8 times, that does suggest that is running once for each player 1-8, or that there are 8 triggers firing which add 250. Can you give us more information?



None.

Oct 6 2009, 9:39 pm Killer2121 Post #14



//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Countdown Timer(At least, 2);

Actions:
Set Switch("Aberdeen", set);
Set Switch("Albany", set);
Set Switch("Almaty", set);
Set Switch("Amery Ice Shelf", set);
Set Switch("Anady'r", set);
Set Switch("ArcticBay", set);
Set Switch("Arica", set);
Set Switch("Arkhangel'sk", set);
Set Switch("Astana", set);
Set Switch("Athens", set);
Set Switch("Auckland", set);
Set Switch("Bangkok", set);
Set Switch("Bank Islands", set);
Set Switch("Beligum", set);
Set Switch("Bergeri", set);
Set Switch("Berkner Island", set);
Set Switch("Biscoe Island", set);
Set Switch("Bisho", set);
Set Switch("Boston", set);
Set Switch("Brazzaville", set);
Set Switch("Brunei", set);
Set Switch("CambridgeBay", set);
Set Switch("Cario", set);
Set Switch("Chicago", set);
Set Switch("Colombo", set);
Set Switch("Conakry", set);
Set Switch("Culabuli", set);
Set Switch("D.C", set);
Set Switch("Danmark Havn", set);
Set Switch("Denmark", set);
Set Switch("Djibouti", set);
Set Switch("Dublin", set);
Set Switch("EL Paso", set);
Set Switch("Enderby Land", set);
Set Switch("Franz Josef Land", set);
Set Switch("FrobisherBay", set);
Set Switch("Georgetown", set);
Set Switch("Glascow", set);
Set Switch("GooseBay", set);
Set Switch("Graham Land", set);
Set Switch("Great Falls", set);
Set Switch("Hammerfest", set);
Set Switch("Harare", set);
Set Switch("Harbin", set);
Set Switch("Havana", set);
Set Switch("Iceland", set);
Set Switch("Instanbuiel", set);
Set Switch("Inuvik", set);
Set Switch("Irkutsk", set);
Set Switch("itseqqortoormiit", set);
Set Switch("Jinan", set);
Set Switch("Khabarovsk", set);
Set Switch("Khartoum", set);
Set Switch("Kinshasa", set);
Set Switch("La Ptata", set);
Set Switch("Lhasa", set);
Set Switch("Librevillie", set);
Set Switch("Lima", set);
Set Switch("London", set);
Set Switch("Madagascar", set);
Set Switch("Madrid", set);
Set Switch("Medan", set);
Preserve Trigger();
Comment("Gaining money (Timer End)");
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Countdown Timer(At least, 2);

Actions:
Comment("Gaining money (Timer End)");
Preserve Trigger();
Set Switch("Miami", set);
Set Switch("Minsk", set);
Set Switch("Murmansk", set);
Set Switch("Nanchang", set);
Set Switch("Natal", set);
Set Switch("New Orleans", set);
Set Switch("Niamey", set);
Set Switch("Nicobar Island", set);
Set Switch("Niger", set);
Set Switch("Nome", set);
Set Switch("Noril'sk", set);
Set Switch("Nuuk", set);
Set Switch("Oman", set);
Set Switch("Omsk", set);
Set Switch("Palmer Land", set);
Set Switch("Pontianak", set);
Set Switch("Pune", set);
Set Switch("Rabat", set);
Set Switch("Regina", set);
Set Switch("Repulse Bay", set);
Set Switch("Resolute", set);
Set Switch("Riyadh", set);
Set Switch("Rome", set);
Set Switch("Salt Lake City", set);
Set Switch("San Francisco", set);
Set Switch("San Jose", set);
Set Switch("Santiago", set);
Set Switch("Sichuan", set);
Set Switch("Singapore", set);
Set Switch("Stanley", set);
Set Switch("Stockhelm", set);
Set Switch("Svalbard", set);
Set Switch("Tampere", set);
Set Switch("Thule", set);
Set Switch("ThunderBay", set);
Set Switch("Tiksi", set);
Set Switch("Toronto", set);
Set Switch("Ufa", set);
Set Switch("Ushuaia", set);
Set Switch("Vancouver", set);
Set Switch("Victoria Island", set);
Set Switch("Weipa", set);
Set Switch("WindHoek", set);
Set Switch("Yakutsk", set);
Set Switch("Yarrie", set);
Set Switch("Yoptzinco", set);
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Switch("Aberdeen", set);
Countdown Timer(At most, 2);
Bring("Current Player", "Buildings", "Aberdeen", At least, 1);
Bring("Player 7", "Buildings", "Aberdeen", Exactly, 0);

Actions:
Set Switch("Aberdeen", clear);
Set Resources("Current Player", Add, 250, ore);
Display Text Message(Always Display, "\x004Aberdeen 250");
Preserve Trigger();
Comment("Aberdeen");
}

//-----------------------------------------------------------------//



None.

Oct 6 2009, 9:47 pm DavidJCobb Post #15



Quote from Killer2121
Map is a Diplomacy
Trigger setup is like this

Condition:
Timer is at least 2 (tried at most with it)
Action:
Set Switch City
Preserve Trigger
-------------------------
Condition:
Switch City is set
Current Player brings at least one building to City
Player 7 Brings 0 buildings to city
Action:
Display City
Add 250
Clear Switch City
Preserve Trigger
--------------------------
thats how the two triggers are set

You're not resetting the timer in the action. So here's what happens.

Timer > 2, so set Switch City
Switch City set, so give minerals and clear Switch City
Timer still > 2, so set Switch City
Switch City set, so give minerals and clear Switch City
...and repeat ad infinitum.

If you only want it to give out money one time, and then stop forever, then do this (and I say "if" because, having never coded a diplomacy map, I'm not exactly sure what you're trying to do):

In the action, find some way to reset the Countdown Timer. I've never really worked with Countdown Timers, so I'm not sure how that would be done. But you need to set it to a value below 2.



None.

Oct 6 2009, 9:59 pm Killer2121 Post #16



thanks i thought if i put it at 1 it would be to quick but it works now :)



None.

Oct 6 2009, 11:24 pm DavidJCobb Post #17



Oh, I just got it, you wanted it to give minerals every 2 seconds.

Anyway, happy to help. :D



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: NudeRaider, Lost_Angel