_______could some one explain switches?

Dirty[elf]

Premium Member
Joined
Jun 23, 2003
Messages
635
Reaction score
0
for example:
_______i have a hero section on my map. i want it to be able to let a player control lurkers at a location for a certian ammount of time then switch it back or destroy them or something. maybe i dont need a switch but when i have asked before people said switches would work. could someone please explain to me how to do this? thanks

right now i was thinking the computer would create the lurkers to begin with, then have it switch to the other players for a certian ammount of time then just switch back for the next person to use it, if there is an easier way, plz plz plz tell me lol... thanks
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
With Switches:

-Players
you do this
-Conditions
a player brings something to somewhere
or
always
-Actions
Move 1 unit from this place to the other place
set switch 1
Preserve trigger

Second Trigger

-Players
you do this
-Conditions
Switch 1 is set
-Action
Give 1 lurker at this place for player 1
kill it!
wait 60000 millieseconds
clear switch 1
Preserve trigger.

Other trigger

-Players
you do this
-Conditions
Always
-Actions
Give 1 lurker for player 1 at this place
wait 30000 millieseconds
Give 1 lurker for player 2 at this place
wait 30000 millieseconds
etc
etc
etc
etc
Preserve Trigger
 

Dirty[elf]

Premium Member
Joined
Jun 23, 2003
Messages
635
Reaction score
0
i still dont think u understand the need for switches...

why cant i just make it appear there then wait, then kill it after xxx seconds?

why even bother with switches!?


s
w
i:shoot
t:shoot
c:shoot
h:shoot
e
s
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
You can do that if you would like. the only disadvantage is the wait's interferance.

But you get the same effect doing it Master Virus' way.


(It is very hard to understand what your asking)
 

Dirty[elf]

Premium Member
Joined
Jun 23, 2003
Messages
635
Reaction score
0
ok ill agree its very confusing but here ill give it a better try

the hero section where you select heros on my map has a lurker option. i dont want to give the player an actual lurker to move around, i just want them to be created at xxx location and be burrowed, then after 10 seconds die or dissapear or something, i was thinking like in the game zig zag tug of war if u have ever played there are mini-guns and there is an option that lets u control them for 60 seconds... is that better? :)
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
Originally posted by Dirty[elf]
i still dont think u understand the need for switches...

why cant i just make it appear there then wait, then kill it after xxx seconds?

why even bother with switches!?


s
w
i:shoot
t:shoot
c:shoot
h:shoot
e
s
I gave two ways. One without switchs and one with.

Originally posted by Dirty[elf]
ok ill agree its very confusing but here ill give it a better try

the hero section where you select heros on my map has a lurker option. i dont want to give the player an actual lurker to move around, i just want them to be created at xxx location and be burrowed, then after 10 seconds die or dissapear or something, i was thinking like in the game zig zag tug of war if u have ever played there are mini-guns and there is an option that lets u control them for 60 seconds... is that better?
Here's one way that sux because some1 could just steal your time but here it goes:

Player x brings 2 civilians to 'Buy lurkers'
-
Kill or remove 2 civilians at buy lurker
Create or give 1 lurker for current player at 'lurker'
wait 60000 millieseconds
kill 1 lurker or give 1 lurker for player 8 at lurker.
preserve trigger

--trigger with switches---
Player1
-
Player x brings 2 civilians to 'Buy lurkers'
-
kill or remove 2 civilians at 'Buy lurkers'
Set switch 1
preserve trigger

trigger 2
player 1
-
switch 1 is set
-
create or give 1 lurker for current player at lurker
wait 60000 millieseconds
kill 1 lurker or give 1 lurker for player 8 at lurker
clear switch 1
preserve trigger

Then do the exact thing above but for each human players:lucifer
 

Dirty[elf]

Premium Member
Joined
Jun 23, 2003
Messages
635
Reaction score
0
ok i get it, u dont need switches... why even bother?
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
you could use the second method as a sort of check up system. For example you already control the lurkers or floortraps whatever but some dumb newb wants to buy them again.

You could add to the condtions of the first trigger
-switch 1 is clear
but then again all you would have to do is add
-force 1 controls exactly 0 lurkers or floor traps.
(unless they have lurkers or floor traps else where and your trying to save locations. confused yet?)
 

tassadar920

Member!
Joined
May 18, 2003
Messages
2,048
Reaction score
0
Location
My house
because they are sometimes easier than making a unit and using an extra location to look for it. On my current masterpeice "A.I." (can't say more than the name..) ive used atleast 100 locations, 1 location might make the difference between this working and not working, so i like minimizing this "failure" risk by using switches. Also, switches can be randomized to do cool things.
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
Oh there are many ways to do this trigger tassadar and there are ways more effective than a switch and wait system like we have been talking about.
 
Top