Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Random unit buy problem2
[SOLVED] Random unit buy problem2
This topic is locked. You can no longer write replies here.
Oct 8 2011, 10:10 pm
By: IcY  

Oct 8 2011, 10:10 pm IcY Post #1

Cruisin' on that LSD

My random system has a glitch. It has about 5 units to cycle through. When players bring unit to location 'toy box' actions should be to take the unit at the randomized units location and and move the unit from the neutral player to the current players transfer zone. at the transfer zone location, units are changed from the neutral player 6or 7 i forget and given to the current player. each player has their own transfer location. The triggers run so that the toy box itself(randomized units location) containing the units are swapping the one unit for the next better unit, constantly quickly, where the players cannot see it. So when you enter the buy toy box location, it should take the current unit there, and give it to the player who bought, and before that even it should move your current character to the middle of the room as to not buy another toy right away. The problem is for one, the randomized location is not randomizing units, its just replacing the worst unit over and over isnstead of cycling through all units. You can see this at the bottom of the map, in the middle, in a square. Second, when you buy it, not only does it just give you the pistol, it never moves your character back to the middle of the room as to not buy another weapon right away. So that is the 2 problems. Here is the map attatched. Thanks

Attachments:
Nazi Zombies vIcY.scx
Hits: 4 Size: 72.73kb




Oct 9 2011, 7:40 pm Roy Post #2

An artist's depiction of an Extended Unit Death

First, a non-formatted paragraph is not as readable. It would have been nice if you added spacing like this:
Quote from IcY
My random system has a glitch. It has about 5 units to cycle through. When players bring unit to location 'toy box' actions should be to take the unit at the randomized units location and and move the unit from the neutral player to the current players transfer zone.

at the transfer zone location, units are changed from the neutral player 6or 7 i forget and given to the current player. each player has their own transfer location.

The triggers run so that the toy box itself (randomized units location) containing the units are swapping the one unit for the next better unit, constantly quickly, where the players cannot see it. So when you enter the buy toy box location, it should take the current unit there, and give it to the player who bought, and before that even it should move your current character to the middle of the room as to not buy another toy right away.

The problem is for one, the randomized location is not randomizing units, its just replacing the worst unit over and over instead of cycling through all units. You can see this at the bottom of the map, in the middle, in a square. Second, when you buy it, not only does it just give you the pistol, it never moves your character back to the middle of the room as to not buy another weapon right away. So those are the 2 problems. Here is the map attached. Thanks.

Second, if you're going to attach a map, it would be very helpful to describe where the malfunctioning triggers are located. I managed to find the triggers in question because the map doesn't have too many triggers yet, but this is something to keep in mind.

Third, I have found out why you're having these issues. Your "Random pt X" triggers are all running on the same trigger loop. This means the "M1911 Pistol" is at the random area, so the trigger runs to remove it and place a "Kar98 $100." Then the next trigger runs, which removes that and places a "M1 Carbine $250" instead. This continues up to the last trigger, which places the "M1911 Pistol" again. This all happens instantly, so it may just look like an "M1911 Pistol" is constantly getting replaced by an "M1 Pistol" in-game. So whenever the player's trigger to get a toy comes up, the "M1 Pistol" will always be the unit in the random area. My suggestion to remedy this is to have a death counter cycle through 0-4, and depending on the number determines what weapon the player receives (i.e. 0 deaths = M1911, 1 death = Kar98, etc.).

The reason your new unit isn't moved to the center is because when you move the new unit from the randomization, you tell it to be moved to "p1 center" (or whichever player is buying it). This happens in your "Transfer" trigger. The location of "p1 center" is where the previous unit was, which is at the "Toybox" location. You should either change the "Transfer" trigger to create at "Middle2" or change the "Buy toy" trigger to move the location "p1 center" to "Middle2" instead of trying to move the unit (which won't update the location in the same trigger loop).

Hope this helps.




Oct 10 2011, 6:44 pm IcY Post #3

Cruisin' on that LSD

Solved thanks




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-07. : 7: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, Roy