Could someone help me....

  • Thread starter Thread starter AnTiX
  • Start date Start date
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
 
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.
 
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.. :)
 
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.
 
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.
 
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
 
Okay Antix ^^;

and Terranator thats basicly what i said up top except i used 2 switches to secure it :P.
 
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.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1

The Helper Discord

Staff online

  • Ghan
    Administrator - Servers are fun

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top