• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Cinematic

Status
Not open for further replies.
Level 13
Joined
Nov 25, 2012
Messages
204
i'm dement from it :DD LOOK

error.jpg


I dont know what i should do with this file
 
Level 16
Joined
Dec 15, 2011
Messages
1,423
The cinematic is played only when you quit the mission or you are victory.

Test struct:

JASS:
struct Test extends array
    
    static method onEsc takes nothing returns nothing
        call CustomVictoryBJ(Player(0), true, true)
        call PlayCinematic("HumanEd")
    endmethod

    static method onInit takes nothing returns nothing
        local trigger t = CreateTrigger()
        call TriggerRegisterPlayerEvent(t, Player(0), EVENT_PLAYER_END_CINEMATIC)
        call TriggerAddAction(t, function thistype.onEsc)
        set t = null
    endmethod
    
endstruct

The cinematic is played correctly.
 
i'm dement from it :DD LOOK

error.jpg


I dont know what i should do with this file

You didn't actually set the file extension. By default, Windows doesn't display extensions for known types (AVI). MPQ is an unknown type (Blizzard's format), so they list that extension. However, yours is still WoW.mpq.avi because I see the AVI icon on it (whereas the MPQ ones show a blank icon).

To show extensions, go to Control Panel -> Appearance and Personalization -> Folder Options. Click the tab View -> Advanced Settings, and uncheck Hide extensions for known file types. Click OK.

Now go back to your WoW.mpq file. It should say WoW.mpq.avi. Rename it to just WoW.mpq.

Now just create a blank trigger and paste this code:
JASS:
scope Test initializer Init 
    private function Init takes nothing returns nothing 
        call PlayCinematic("WoW")
    endfunction
endscope
It should show the cinematic when you quit the mission.
 
Status
Not open for further replies.
Top