HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Cinematic doesn't work properly

05-27-2008, 01:32 AM#1
dhobby
After this cinematic runs, the profile picture of the unit disappears. Also my dialog attribute system doesn't function properly.

Trigger:
First Encounter with Naga
Collapse Events
Unit - A unit enters First Encounter with Naga <gen>
Collapse Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
(Owner of (Triggering unit)) Equal to Player 6 (Orange)
(Owner of (Triggering unit)) Equal to Player 7 (Green)
(Owner of (Triggering unit)) Equal to Player 8 (Pink)
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
(Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
Collapse Actions
Trigger - Run Starts Cinematic <gen> (ignoring conditions)
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Camera - Apply First Encounter with Naga <gen> for (Owner of (Triggering unit)) over 1.00 seconds
Cinematic - Send transmission to (All players) from (Triggering unit) named (Proper name of (Triggering unit)): Play No sound and display Eep! What the hell .... Modify duration: Add 5.00 seconds and Wait
Cinematic - Send transmission to (All players) from Mur'gul Cliffrunner 0024 <gen> named Unknown Creature: Play No sound and display .... Modify duration: Add 2.00 seconds and Wait
Trigger - Run Ends Cinematic <gen> (ignoring conditions)
Trigger - Turn off (This trigger)
Trigger:
Starts Cinematic
Events
Conditions
Collapse Actions
Cinematic - Turn cinematic mode On for (All players)
Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 0.00 seconds
Cinematic - Disable user control for (All players)
Cinematic - Clear the screen of text messages for (All players)
Cinematic - Turn subtitle display override On
Unit - Pause all units
Trigger:
Ends Cinematic
Events
Conditions
Collapse Actions
Unit - Unpause all units
Cinematic - Turn cinematic mode Off for (All players)
Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 0.00 seconds
Cinematic - Enable user control for (All players)
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 2.00 seconds
Trigger:
Attributes
Collapse Events
Dialog - A dialog button is clicked for Stat_Box
Collapse Conditions
((Triggering player) Current lumber) Not equal to 0
Collapse Actions
Set TempUnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Button[3]
Collapse Then - Actions
Player - Add -1 to (Triggering player) Current lumber
Dialog - Show Stat_Box for (Triggering player)
Collapse Unit Group - Pick every unit in TempUnitGroup and do (Actions)
Collapse Loop - Actions
Hero - Modify Intelligence of (Picked unit): Add 1
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Button[2]
Collapse Then - Actions
Player - Add -1 to (Triggering player) Current lumber
Dialog - Show Stat_Box for (Triggering player)
Collapse Unit Group - Pick every unit in TempUnitGroup and do (Actions)
Collapse Loop - Actions
Hero - Modify Agility of (Picked unit): Add 1
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Button[1]
Collapse Then - Actions
Player - Add -1 to (Triggering player) Current lumber
Dialog - Show Stat_Box for (Triggering player)
Collapse Unit Group - Pick every unit in TempUnitGroup and do (Actions)
Collapse Loop - Actions
Hero - Modify Strength of (Picked unit): Add 1
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Button[4]
Collapse Then - Actions
Dialog - Hide Stat_Box for (Triggering player)
Else - Actions


I know there are leaks most of these are a rough draft.

Edit: I just realized this may be in the wrong section. Maybe some moderator would like to move this to the cinematic forum? xP
05-27-2008, 07:59 PM#2
Anopob
What do you mean profile of the unit disappearing?
05-27-2008, 09:54 PM#3
Silvenon
He meant the unit's portrait. During the transmission you have the talking unit's portrait where the data of currently selected unit should be, except when it's in the cinematic mode, then you can't select units :P.

I can say this without even looking in the code: coding has absolutely nothing to do with showing the unit's portrait (especially in GUI). This can only happen if the model is imported and when that happens, you can kill yourself because those things mostly happen at random, meaning either it works or it doesn't.

If somebody wants to say that the statement above is wrong, I know that it's true, because I had two maps and I imported exactly the same model in both maps, but (of course), one map displayed the portrait, the other one didn't.

EDIT: Er, scratch that. I looked at the code :P. There is a mistake (which most people do):

Trigger:
Trigger - Run Starts Cinematic <gen> (ignoring conditions)
Camera - Apply First Encounter with Naga <gen> for (Owner of (Triggering unit)) over 1.00 seconds
Trigger - Run Ends Cinematic <gen> (ignoring conditions)

I'm just guessing, but I think that you thought the system will wait for that one second when the camera is applying. False, it goes straight further, executing everything on it's way. Put a 1 second wait after the camera. If that wasn't what you meant, just speak.

Quote:
Edit: I just realized this may be in the wrong section. Maybe some moderator would like to move this to the cinematic forum? xP

Don't worry, this is the coding section, so you got the right one. Cinematic section is more of a section where you put finished maps containing cinematics and such.
05-27-2008, 09:54 PM#4
dhobby
oh i meant the portrait. The stats update properly before the cinematic but after wards when u change stats u have to reselect the unit before the changes show up. THe portrait is gone which means clicking it no longer centers your screen on the unit. its just a black space after the cinematic.

To Silvenon - are you sure because it happens when I use the Slyvanas Wind Runner model too.