Hi! I'm a little bit at a loss here. I'm looking for a way to make a short "animation" loop via importing a bunch of images and playing them quickly in sequence from a timer, without using Waits in GUI, e.g., when a timer ticks .05 seconds, it plays movie1.blp; when it hits .1 seconds, it plays movie2.blp, and so on and so forth. I've seen it done before in a few maps and tried copying their triggers, but unfortunately, I'm still new to JASS and am not really sure what I'm looking at.
Here's a piece of it that I took from one of their triggers:
I'm not that experienced with setting up timers and integers in this way and I'm still a long way away from making my own JASS from scratch. Any help at all would be greatly appreciated!
Here's a piece of it that I took from one of their triggers:
JASS:
function AX takes nothing returns nothing
local timer t=GetExpiredTimer()
local integer id=GetHandleId(t)
local integer i=LoadInteger(udg_hashtable01,id,0)
local integer j=1
local integer NX=LoadInteger(udg_hashtable01,id,1)
local integer KE=0
local integer PE=0
local boolean bX=LoadBoolean(udg_hashtable01,id,0)
call SaveInteger(udg_hashtable01,id,0,i+1)
if i==-1 then
call SaveInteger(udg_hashtable01,id,0,4)
call TimerStart(t,1.,false,function AX)
elseif i>=0 and i<=201 then
if NX==0 then
call CinematicFilterGenericBJ(.0,BLEND_MODE_BLEND,"war3mapImported\\Movie1.blp",100,100,100,.0,100.,100.,100.,0)
call SaveInteger(udg_hashtable01,id,1,1)
elseif NX==1 then
call CinematicFilterGenericBJ(.0,BLEND_MODE_BLEND,"war3mapImported\\Movie2.blp",100,100,100,.0,100.,100.,100.,0)
call SaveInteger(udg_hashtable01,id,1,2)
elseif NX==2 then
call CinematicFilterGenericBJ(.0,BLEND_MODE_BLEND,"war3mapImported\\Movie3.blp",100,100,100,.0,100.,100.,100.,0)
call SaveInteger(udg_hashtable01,id,1,0)
endif
elseif i==202 then
call CinematicFilterGenericBJ(.5,BLEND_MODE_BLEND,"war3mapImported\\Movie3.blp",100,100,100,.0,.0,.0,.0,0)
endif
set t=null
endfunction
I'm not that experienced with setting up timers and integers in this way and I'm still a long way away from making my own JASS from scratch. Any help at all would be greatly appreciated!














