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.
[05:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
Please log in to shout.


Members Online: zamia, jun3hong, UndeadStar