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.
[10:05 am]
Moose -- ya
[05:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
Please log in to shout.


Members Online: jun3hong