function CinematicFilterGenericForPlayer takes player whichPlayer, real duration, blendmode bmode, string tex, real red0, real green0, real blue0, real trans0, real red1, real green1, real blue1, real trans1 returns nothing
if ( GetLocalPlayer() == whichPlayer ) then
call SetCineFilterTexture(tex)
call SetCineFilterBlendMode(bmode)
call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
call SetCineFilterStartUV(0, 0, 1, 1)
call SetCineFilterEndUV(0, 0, 1, 1)
call SetCineFilterStartColor(PercentTo255(red0), PercentTo255(green0), PercentTo255(blue0), PercentTo255(100-trans0))
call SetCineFilterEndColor(PercentTo255(red1), PercentTo255(green1), PercentTo255(blue1), PercentTo255(100-trans1))
call SetCineFilterDuration(duration)
call DisplayCineFilter(true)
endif
endfunction
Name | Type | is_array | initial_value |
A | integervar | No | |
A_AoE | real | No | |
A_Duration | real | No | |
A_Real | real | No | |
A_UType | unitcode | No | |
Aim_Angle | real | Yes | |
Aim_Camera | boolean | Yes | |
Aim_Filter | boolean | Yes | |
Angle | real | Yes | |
AngleCount | real | Yes | |
ANI | integervar | No | |
AOEIncrement | real | Yes | |
AOEIncrementNI | real | Yes | |
ARIndex | integer | No | |
artillery_pad | group | No | |
artillery_point | location | No | |
artillery_point2 | location | No | |
B1T | integervar | No | |
BaseAOE | real | Yes | |
BaseAOENI | real | Yes | |
BaseDmg | real | Yes | |
BaseDmgNI | real | Yes | |
BaseTrailDmg | real | Yes | |
BaseTrailDmgNI | real | Yes | |
Bomb | group | No | |
bomb_creation_point | location | No | |
bomb_creation_point_2 | location | No | |
BT2 | integervar | No | |
BT_Angle | real | Yes | |
BT_Dummy | unit | Yes | |
BT_Equation | real | Yes | |
BT_Group | group | Yes | |
BT_Group1 | group | No | |
BT_Hero | unit | Yes | |
BT_Loop | integer | No | |
BT_Main_Point | location | Yes | |
BT_Max_Distance | real | Yes | |
BT_Off | boolean | Yes | |
BT_Offset | real | Yes | |
BT_Part | integer | Yes | |
BT_Point | location | Yes | |
BT_Positive | integer | Yes | |
BT_Special | effect | Yes | |
BT_Speed | real | Yes | |
BT_Take_Dist | real | Yes | |
BT_Times | integer | No | |
Caster | unit | No | |
CasterNI | unit | Yes | |
CenterPoint | location | Yes | |
CenterPointNI | location | Yes | |
Colors | string | Yes | |
Dead_Camera | boolean | Yes | |
Dead_Filter | boolean | Yes | |
Death_Time | real | Yes | |
Death_Timer | leaderboard | Yes | |
Deaths | integer | Yes | |
destroy_bomb_point | location | No | |
Distance | real | No | |
DistanceNI | real | Yes | |
DmgIncrement | real | Yes | |
DmgIncrementNI | real | Yes | |
EluneArrow_Angle | real | No | |
EluneArrow_Caster | unit | Yes | |
EluneArrow_CasterLoc | location | No | |
EluneArrow_Counts | integer | No | |
EluneArrow_CustomValue | integer | No | |
EluneArrow_Distance | real | Yes | |
EluneArrow_DistanceCount | real | Yes | |
EluneArrow_DistanceTravel | real | Yes | |
EluneArrow_DummyLoc | location | No | |
EluneArrow_Movement | location | No | |
EluneArrow_RandomUnit | group | No | |
EluneArrow_StartGroup | group | No | |
EluneArrow_StunDuration | integer | Yes | |
EluneArrow_TargetPoint | location | No | |
EluneArrow_UnitGroup | group | No | |
EntaglingDummy | group | No | |
EV | integervar | No | |
EV_Angle | real | Yes | |
EV_Caster | unit | Yes | |
EV_DEBUG | group | No | |
EV_Distance | real | Yes | |
EV_Distance_Decoy | real | Yes | |
EV_Dummy | unit | Yes | |
EV_Effect_Spam | integer | Yes | |
EV_Group | group | Yes | |
EV_Level | integer | Yes | |
EV_Light | lightning | Yes | |
EV_Looper | integervar | Yes | |
EV_Max_Height | real | Yes | |
EV_Off | boolean | Yes | |
EV_Part | integer | Yes | |
EV_Point | location | Yes | |
EV_Raise_Speed | real | Yes | |
EV_Skip | integer | No | |
EV_SpecialEffect | effect | Yes | |
EV_Speed | real | Yes | |
EV_Times | integer | No | |
EV_Z | real | Yes | |
ExtraStreak_Chcker | boolean | Yes | |
ExtraStreak_Kills | integer | Yes | |
ExtraStreak_Sounds | sound | Yes | |
ExtraStreak_Strings | string | Yes | |
ExtraStreak_Timer | integer | Yes | |
ExtraStreakInt | integervar | No | |
FacingAngle | real | Yes | |
FacingAngleNI | real | Yes | |
Fire | unit | Yes | |
FireNI | unit | Yes | |
flag | item | No | |
GameMode | dialog | No | |
GameModeButton | button | Yes | |
harvester | unit | No | |
HCS_Ange | real | Yes | |
HCS_Caster | unit | Yes | |
HCS_Check | boolean | Yes | |
HCS_Damage | real | Yes | |
HCS_Distance | real | Yes | |
HCS_Integers | integer | Yes | |
HCS_Interval | real | Yes | |
HCS_Speed | real | Yes | |
HCS_Timer | real | Yes | |
HolyShield | boolean | Yes | |
Horiz_Rotation | real | Yes | |
i | integervar | No | |
i2 | integervar | No | |
IAAngle | real | Yes | |
IAArrow | unit | Yes | |
IACaster | unit | Yes | |
IACasterPoint | location | Yes | |
IACount | integer | No | |
IADamage | real | Yes | |
IADistance | real | Yes | |
IADMGGroup | group | Yes | |
IAHas | boolean | Yes | |
IAIndex | integer | No | |
IAInteger | integervar | No | |
IALastRecycled | integer | No | |
IAMax | integer | No | |
IAMaxDistance | real | Yes | |
IARecycledList | integer | Yes | |
IATargetPoint | location | Yes | |
Index | integer | No | |
IndexAMax | integer | No | |
IndexAMaxNI | integer | No | |
IndexAMin | integer | No | |
IndexAMinNI | integer | No | |
IndexBoolMissile | boolean | Yes | |
IndexBoolMissileNI | boolean | Yes | |
IndexNI | integer | No | |
JB | integervar | No | |
JB_Angle | real | Yes | |
JB_AoE | real | Yes | |
JB_Colision | real | Yes | |
JB_Damage | real | Yes | |
JB_Distance | real | Yes | |
JB_Group | group | No | |
JB_Height | real | Yes | |
JB_Hero | unit | Yes | |
JB_Level | integer | Yes | |
JB_MaxDistance | real | Yes | |
JB_Missile | unit | Yes | |
JB_Off | boolean | Yes | |
JB_Parabola | real | Yes | |
JB_Point | location | Yes | |
JB_Skip | integer | No | |
JB_Speed | real | Yes | |
JB_Times | integer | No | |
Kills | integer | Yes | |
Leap_Angle | real | Yes | |
Leap_Caster | unit | No | |
Leap_CasterLoc | location | No | |
Leap_Counts | integer | No | |
Leap_CustomValue | integer | No | |
Leap_Distance | real | Yes | |
Leap_DistanceTravel | real | Yes | |
Leap_MoveGroup | group | No | |
Leap_Movement | location | No | |
Leap_UnitGroup | group | No | |
loc | location | No | |
loc2 | location | No | |
LocZ | real | No | |
LocZ_Shoot | real | No | |
Magnification | real | Yes | |
Metronome | abilcode | Yes | |
MH_Angle | real | Yes | |
MH_Attack | boolean | Yes | |
MH_Caster | unit | Yes | |
MH_Damage | real | Yes | |
MH_Distance | real | Yes | |
MH_Group | group | Yes | |
MH_Hook | unit | Yes | |
MH_Hooks | group | Yes | |
MH_Index | integer | Yes | |
MH_Life | real | Yes | |
MH_Move | real | Yes | |
MH_NearHook | group | Yes | |
MH_Point | location | Yes | |
MH_Shmat | unit | Yes | |
MH_Spell | abilcode | Yes | |
MH_Target | unit | Yes | |
MH_Time | real | Yes | |
MoonlightShadow_Caster | unit | Yes | |
MoonlightShadow_Counts | integer | No | |
MoonlightShadow_CustomValue | integer | No | |
MoonlightShadow_Duration | real | Yes | |
MoonlightShadow_InvisibleGroup | group | No | |
MoonlightShadow_PickedUnit | unit | No | |
MoonlightShadow_Point | location | Yes | |
MoonlightShadow_TimeGroup | group | No | |
MoonlightShadow_UnitGroup | group | No | |
Multi_Shot_Ability_Level | integer | No | |
Multi_Shot_Base_Arrow_Count | integer | No | |
Multi_Shot_Caster | unit | No | |
Multi_Shot_Dummy_Ability | abilcode | No | |
Multi_Shot_Facing | real | No | |
Multi_Shot_Location | location | No | |
Multi_Shot_Location_2 | location | No | |
Multi_Shot_Loop_Location | location | No | |
Multi_Shot_Loop_Location2 | location | No | |
Multi_Shot_Owner | player | No | |
Multi_Shot_Total_Arrow_Count | integer | No | |
Multiboard_Players | player | Yes | |
MVC_PickGroup | group | No | |
MVC_Point | location | Yes | |
MVC_UnitType | unitcode | Yes | |
Normal_Camera | boolean | Yes | |
Normal_Filter | boolean | Yes | |
Online_Players | force | No | |
Pan_Position | location | No | |
PHAngle | real | Yes | |
PHCaster | unit | Yes | |
PHDistance | real | Yes | |
PHMax | integer | No | |
PHReturn | boolean | Yes | |
PHSegment | unit | Yes | |
PHSegmentMax | integer | Yes | |
PHSpeed | real | Yes | |
PHTarget | unit | Yes | |
PHTargetGroup | group | No | |
RA_Color | real | Yes | |
RA_Counter | real | Yes | |
RA_Dummy | unit | Yes | |
RA_Duration | real | Yes | |
RA_HeightInc | boolean | Yes | |
RA_Integers | integer | Yes | |
RAS_Color | real | No | |
RAS_Dummy | unit | No | |
RAS_Duration | real | No | |
RAS_HeightInc | boolean | No | |
Recoil | boolean | Yes | |
Recoiled | real | Yes | |
Recoiling | real | Yes | |
Region | rect | Yes | |
ReqAngle | real | Yes | |
Rotate_Down | boolean | Yes | |
Rotate_Left | boolean | Yes | |
Rotate_Right | boolean | Yes | |
Rotate_Up | boolean | Yes | |
Round_Time | timer | No | |
Score | integer | Yes | |
Scoreboard | texttag | Yes | |
Shoot_Angle | real | No | |
Shooter_Loc | location | No | |
Sniper | unit | Yes | |
SpellLevel | integer | No | |
Starfall_Caster | unit | No | |
Starfall_CasterLoc | location | No | |
Starfall_RandomInteger | integer | No | |
Starfall_UnitGroup | group | Yes | |
stealth_bomber_creation | location | No | |
stealth_bomber_creation_2 | location | No | |
stealth_bomber_position | location | No | |
stealth_bomber_position_2 | location | No | |
stealthed_Bomber | group | No | |
Streak_Kills | integer | Yes | |
Streak_Sounds | sound | Yes | |
Streak_Strings | string | Yes | |
T | integervar | No | |
T_Angle | real | Yes | |
T_Damage | real | Yes | |
T_Debug | group | No | |
T_Distance | real | Yes | |
T_Dummy1 | unit | Yes | |
T_Dummy2 | unit | Yes | |
T_Fall_Speed | real | Yes | |
T_Group | group | Yes | |
T_Height | real | Yes | |
T_Hero | unit | Yes | |
T_Off | boolean | Yes | |
T_Point | location | Yes | |
T_Skip | integer | No | |
T_Spam | integer | Yes | |
T_Speed | real | Yes | |
T_Swap | integer | Yes | |
T_Times | integer | No | |
Target_Loc | location | No | |
Temp_Players | integer | No | |
TempArrayGroup | group | Yes | |
TempGroup | group | No | |
TempGroupNI | group | No | |
TempLoc | location | No | |
TempLoc1 | location | No | |
TempLoc1NI | location | No | |
TempLoc2 | location | No | |
TempLoc2NI | location | No | |
TempLoc3 | location | No | |
TempPoint | location | No | |
TempPoint1 | location | No | |
TempPoint2 | location | No | |
TempUnit | unit | No | |
TempUnit2 | unit | No | |
Timah | timer | No | |
Time | real | Yes | |
TimeNI | real | Yes | |
Torrent_Caster | unit | Yes | |
Torrent_Damage | real | Yes | |
Torrent_Dummy | unit | Yes | |
Torrent_Dummy2 | unit | Yes | |
Torrent_Group1 | group | Yes | |
Torrent_Group2 | group | Yes | |
Torrent_Heigh | real | Yes | |
Torrent_Index | integer | Yes | |
Torrent_Level | integer | Yes | |
Torrent_Point | location | Yes | |
Torrent_Time | real | Yes | |
TrailAOE | real | Yes | |
TrailAOEIncrement | real | Yes | |
TrailAOENI | real | Yes | |
TrailDmgIncrement | real | Yes | |
TrailDmgIncrementNI | real | Yes | |
TrailGroup | group | Yes | |
TrailGroupNI | group | Yes | |
TT_Loop | integervar | Yes | |
TurnBool | boolean | Yes | |
TurnBoolNI | boolean | Yes | |
TW_caster | unit | Yes | |
TW_casterpoint | location | No | |
TW_createpoint | location | No | |
TW_damage | real | Yes | |
TW_damagecheck | real | Yes | |
TW_damagereduced | real | Yes | |
TW_dragspeed | real | Yes | |
TW_dummy | unit | Yes | |
TW_dummypoint | location | No | |
TW_facing | real | Yes | |
TW_hitgroup | group | Yes | |
TW_index1 | integer | Yes | |
TW_index2 | integer | No | |
TW_index3 | integervar | No | |
TW_index_max | integer | No | |
TW_index_size | integer | No | |
TW_offsetpoint | location | No | |
TW_picked_offsetpoint | location | No | |
TW_picked_point | location | No | |
TW_pickedunit | unit | No | |
TW_targetpoint | location | No | |
TW_targetrect | rect | Yes | |
U | unit | No | |
UNI | unit | No | |
Vert_Rotation | real | Yes | |
Weapon_Damage | real | No | |
X | real | No | |
X2 | real | Yes | |
X22 | real | No | |
X4 | real | Yes | |
X6 | real | Yes | |
Y | real | No | |
Y2 | real | No | |
Z_Bullet | real | No | |
Z_Bullet_Change | real | No | |
Z_Difference | real | No | |
Z_Shooter | real | No | |
Z_Target_Chest | real | No | |
Z_Target_Head | real | No | |
Z_Target_Legs | real | No |
=====How to import=====
[1] File ---> Preferences ---> General ---> check "Automatically create unknown variables while pasting trigger data"
This above allow creating unknown variable during the import if your map doesn't have the variables
[2] Export the TidalEruption.mdx in the Import Manager
[3] In the Object Editor ---> Units, copy the 2 units, Tidal Wave_dummy (effect) and Tidal Wave_dummy (wave) into your map
Tidal Wave_dummy (effect) doesn't play an important role in this spell, it just creates the effect for this spell so
this is an exception if you didn't copy this unit
Tidal Wave_dummy (wave) is the wave that surges forward when the spell is cast so this is very important
[4] Copy the ability in Object Editor ---> Abilities, or create your own ability based on a point target spell
[5] Copy the whole folder of this Tidal Wave into your map
[6] In the TW cast, there will be problems.
First, you'll see the Turn on TW loop is disabled, just double "Enter" it to fix it.
Fix the ability (Ability Being Cast) in the condition which usually it will change as it follows the same raw code
And don't forget to fix the dummy unit created, you'll see that the same problem occurs. The unit created changes.
The first dummy unit created is Tidal Wave_dummy (effect) follow by the second dummy created is Tidal Wave_dummy (wave)
[7] Lastly, remember to check
Import complete... Enjoy! :)