• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Cinematic

Status
Not open for further replies.
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