Could someone help me....

A

AnTiX

Guest
Hi guys,

I have a problem with 1 trigger im trying to sort it out since 2h and i cant :x

Im making a campaing, in mission you have 1 hero, he must live if enemy kill him you lose, as usual on SC BW missions.
Next you get few more troops + some buldings + 1 more hero.
Now the question is how to create a trigger eg:

Con:

Player X commands at most 0 hero1

Ac:

End scenario for current player.


I get second hero a bit later so if i create for him same trigger ill lose at start...

Does it is any way to 'active' this trigger a bit later or something like that ?
If anyone know please reply me here how to do this.
Thanks

AnTiX
 
C

Coop

Guest
That is EXACTLY what a switch does :).
First you set the switch, lets say for the first switch you make a trigger like this to set it.

Condition:
Always
Action:
Set 'Switch 1'

Now that switch 1 is set, lets say you want Player 1 to lose when his Dragoon dies.

Condition:
'Switch 1' is set
Player 1 commands exactly 0 Dragoon
Action:
Set scenerio in defeat for current player

Now lets say you have a change of units. You now want Player 1 to lose when his Hydralisk dies. (I am not sure exactly what you are asking. When exactly will the second hero come? and do you want the player to lose when either hero dies, or will the second hero replace the first one? These questions will affect this next trigger. With this next trigger im going to just assume the second hero appears when a certain player brings his units to a location.)

Condition:
'Switch 1' is Set
Player brings atleast 1 any unit to location
Action:
Set 'Switch 2'

Now you are setting a switch saying that the Second Hero is now in the game and the next trigger will be to lose when that switch is set and the hero is not there..

Condition:
'Switch 2' is Set
Player commands exactly 0 Hydralisk
Action:
End scenerio in defeat for current Player.

I hope that helps you a little. If you give me a bit more specifics i can help you a bit more.

Ahh i just read over that and it doesn't even make much sense to me =/. Oh well, if you give me the specifics ill try and make a little more sense.
 
A

AnTiX

Guest
Hi Coop,

Well hehe probably its my bad english :)
Ok ill try explain.
As i said im making a campaing. Now im making second mission.
The group of Protoss back to Shakuras after Kerrigan defeated all enemies on Char platform.

You start with few troops and Danimoth.
Danimoth MUST survive.
When you walk trough and killing everything on your way, you get a massage that Danimoth feels his brothers energy.
He scan area and you see protoss base which have to be rescued.
You entered base (Base is on rescuable) and you get buldings and units. Then Zeratul comes. (Zeratul is created by trigger)

Now i need to make this trigger.
Its like new objectives,

New mission obj.

- Danimoth must survive
- Destroy all enemy bases

and after you rescue this base:

- Zeratul Must survive!

PS: I have no clue about switches, Im an old mapper but i never use it.. :)
 
C

Coop

Guest
Sorry about late response =/. Hope you didnt give up or anything.

You still didnt answer one of my questions. Lets say you got the new base and you got Zeratul. If then Danimoth dies do you want the player to lose?
Im gonna explain it as if Danimoth dies you still lose. This is basicly what i said in the first post.

Trigger 1..
Condition:
- Always
Action:
- Set 'Switch 1'

Trigger 2..
Condition:
- 'Switch 1' is set
- Player Commands Exactly 0 Danimoth
Action:
- Set Mission in Defeat for current player

Trigger 2..
Condition:
- 'Switch 1' is set
- Player Commands exactly 1 Zeratul
Action:
- Set 'Switch 2'

Trigger 3..
Condition:
- 'Switch 2' is set
- Player Commands Exactly 0 Zeratul
Action:
- Set Mission in Defeat for Current Player

That should do the trick =). If theres any other help you need post it and ill check in.
 
A

AnTiX

Guest
hi,

Well ill try this. and i tell you if it works a bit later now bed time ;)
Also if i get any other probs i just show you how my map looks like.
 
T

Terranator3

Guest
Your problem lies with your second hero. By making the same trigger for your second hero you are ending the game before you even start (which you already know). To solve this problem try this:

CONDITION
Player commands at least 1 'Second Hero'
ACTION
Set 'Switch'

CONDITION
Player commands at most 0 'Second Hero'
'Switch' is set
ACTION
End scenario in defeat for current player
 
C

Coop

Guest
Okay Antix ^^;

and Terranator thats basicly what i said up top except i used 2 switches to secure it :p.
 
T

Terranator3

Guest
Ya, its basically what ya said, but not exactly! I do know a few short cuts that do just the same thing.
Im not ensuing a competition here, just offering my ideas like the rest o ya.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top