aaaand I wanted to end my map with a cinematic but...

Enzyte

New Member
Reaction score
1
I know, I've promised that I'm done, but I really wanted a simple cinematic when every quest is done. =/

So after you receive the 3 quest items (which completes the last quest) A boss will spawn and you have to kill it. When you kill the boss, there should be a cinematic.
So here is my victory trigger (The cinematic works fine, I've tested it)

Trigger:
  • Trigger victory
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to boss
    • Actions
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 1.00 seconds
      • etc...


The 'boss' variable has a unit type which is the summoned boss. The boss is a Dreadlord itself which count as a hero.
 

Accname

2D-Graphics enthusiast
Reaction score
1,465
Put a debug message in your map and check the content of the variable "boss".
Also, use triggering unit instead of dying unit. Its much more reliable.
 

DrEvil

FCRI Associate!
Reaction score
111
Is your trigger enabled?
Is it initially on?
(Check the checkbox's right at the top in the trigger, if turned off (any of them) will stop the trigger from running)
 

O.A

Quantum physics rules
Reaction score
29
You could use;
Trigger:
  • (Unit-type of (Triggering unit)) Equal to Dreadlord

instead of storing anything in a variable. If you store something in a variable, i would rather store the unit itself;
Trigger:
  • Actions
    • Unit - Create 1 Dreadlord for Neutral Hostile at (Center of (Playable map area)) facing Default building facing degrees
    • Set boss = (Last created unit)


Edit: Man, you guys post fast :)
 

DrEvil

FCRI Associate!
Reaction score
111
I have
Trigger:
  • Config
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set lizardguy = Lightning Lizard 0025 <gen>

Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to lizardguy
    • Actions
      • Game - Display to (All players) the text: ghgh

and it works.

The only thing I can think of is your variable isn't set properly OR your trigger is disabled
 

Enzyte

New Member
Reaction score
1
You could use;
Trigger:
  • (Unit-type of (Triggering unit)) Equal to Dreadlord

instead of storing anything in a variable. If you store something in a variable, i would rather store the unit itself;
Trigger:
  • Actions
    • Unit - Create 1 Dreadlord for Neutral Hostile at (Center of (Playable map area)) facing Default building facing degrees
    • Set boss = (Last created unit)

Well I have used
Trigger:
  • Trigger SpawnBoss
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Unit - Create 1 Zombie Summoner for Player 12 (Brown) at (Center of SpawnBoss <gen>) facing Default building facing degrees
    • Set boss = (Last created unit)
      • Unit - Hide boss


Later when you finish the quest the 'boss' will 'unhide' which is working as well
 

Accname

2D-Graphics enthusiast
Reaction score
1,465
First of all, change the "dying unit" to "triggering unit". Dying unit only works as long as there is a corpse on the ground. Some units do not even leave a corpse. Its not reliable.

Next, change your trigger in the following way:
Events
Unit - A unit dies
Conditions
Actions
Game - Display to (All players) the text: (Name of (Boss))

And then see if it displays the correct name when you kill your boss.
 

DrEvil

FCRI Associate!
Reaction score
111
First of all, change the "dying unit" to "triggering unit". Dying unit only works as long as there is a corpse on the ground. Some units do not even leave a corpse. Its not reliable.

Next, change your trigger in the following way:
Events
Unit - A unit dies
Conditions
Actions
Game - Display to (All players) the text: (Name of (Boss))

And then see if it displays the correct name when you kill your boss.


I disagree, even if a unit doesn't leave a corpse, dying unit will always refer to the "dead" unit.
Also use [wc3][/wc3] tags accn00b!
 

Enzyte

New Member
Reaction score
1
First of all, change the "dying unit" to "triggering unit". Dying unit only works as long as there is a corpse on the ground. Some units do not even leave a corpse. Its not reliable.

Next, change your trigger in the following way:
Events
Unit - A unit dies
Conditions
Actions
Game - Display to (All players) the text: (Name of (Boss))

And then see if it displays the correct name when you kill your boss.

Ahha! It's working now. The name was wrong somehow... =/
Well, thank you again :)
 

Accname

2D-Graphics enthusiast
Reaction score
1,465
Oh really, maybe this has changed by now. I remembered it this way.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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