• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] If/then/else crash

Status
Not open for further replies.
Level 15
Joined
Aug 18, 2007
Messages
1,390
Hi all
im making on my RPG, and made a trigger for atmosphere, so when a unit enters a region, it will add a mask to the target to give it a little more "feel"
But when i'll start the game, it says that the trigger is unavialable and the map does not start! this is my trigger:

  • Events
  • Unit - unit enters Region1
  • Unit - unit enter Region2
  • Unit - unit enter Region3
  • Conditions
  • Actions:
  • If (all conditions are true) then do (then actions) else do (else actions)
  • If condition
  • Region - Region 1 contains (triggering unit)
  • then actions:
  • Cinematic - Fade out useing white mask and colors xx xx xx useing xx transperencity
  • else actions
  • If (all conditions are true) then do (then actions) else do (else actions)
  • If condition
  • Region - Region 2 contains (triggering unit)
  • then actions
  • Cinematic - Fade out useing white mask and colors xx xx xx useing xx transperencity
  • else actions
sorry for the bad-looking trigger, but never really learned to use the If/then/else trigger...

Any help would be nice :thumbs_up:
//lord_of_Sausage
 
I can't really see any problem with this however I do have 2 notes:

1. Don't copy to text each line, copy the whole trigger with right clicking on the white page (that is ontop of your event, not in the trigger list).

2. This will do the fade for all the players.

If you want it to do the fade only for the owner of the unit, add this line before your other actions

  • Custom script: GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit())
 
Status
Not open for further replies.
Back
Top