• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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
 
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