• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] If/then/else crash

Status
Not open for further replies.
Level 14
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
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
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.
Top