• 🏆 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] 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