Staredit Network > Forums > SC2 Assistance > Topic: Base changing trigger
Base changing trigger
May 8 2010, 11:09 am
By: Kikisss  

May 8 2010, 11:09 am Kikisss Post #1



Hi.
Can some one help me with triggers.
i need base changing witch depends on value x.
x = RandomInt(9,1); when unit leaves distance of unit.
and if x==1 then unit sets to player 1 else sets to player 0
etc...

Post has been edited 1 time(s), last time on May 8 2010, 12:09 pm by Kikisss.



None.

May 8 2010, 11:27 am Devourer Post #2

Hello

Please give more information and your aim.
Also, your topic name should be different, things like "help me" are not liked to be seen, much better would be like "Integer randomization problem" or similiar.



Please report errors in the Staredit.Network forum.

May 8 2010, 12:24 pm Kikisss Post #3



Quote
x value = 1

triger change x
EVENTS
unit leaves distance of 5.0 from unit1
unit leaves distance of 5.0 from unit2
unit leaves distance of 5.0 from unit3
unit leaves distance of 5.0 from unit4
unit leaves distance of 5.0 from unit5
unit leaves distance of 5.0 from unit6
unit leaves distance of 5.0 from unit7
unit leaves distance of 5.0 from unit8
unit leaves distance of 5.0 from unit9
ACTIONS
Varriable - x = randomINT(9,1);

Triger Unit1
Actions
whihe x==1 do unit change ownershit to player 1
and so till 9




mby now you will understand



None.

May 8 2010, 12:37 pm Devourer Post #4

Hello

I'm pretty sure that this is the problem:
"Unit leaves disteance of" <- this means the event is only filled once the unit leaves the distance, not if it is outside.
Therefore, to fire the trigger, every unit would have to leave the distance on EXACTLY THE SAME TIME, so I assume you should make more triggers and set variables or find a condition to check that and make a repeating event.



Please report errors in the Staredit.Network forum.

May 9 2010, 10:15 am Kikisss Post #5



what i need to change triger(change x) cuz he is not doing x = randomINT(9,1);

Post has been edited 1 time(s), last time on May 9 2010, 10:56 am by Kikisss.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: jjf28