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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Final Fantasy Demo.w3x
Variables
Initialization
Melee Initialization
Music
Attack
Unpause
Dead enemy
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Badguy
unit
Yes
DamageTemp
integer
No
DamageText
texttag
Yes
PartyMember
unit
Yes
PartySize
integer
No
Textnum
integer
No
Turn
integer
No
UnitStrength
integer
Yes
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Set Variable Set Badguy[1] = Behemoth 0001 <gen>
Set Variable Set PartyMember[1] = Paladin 0000 <gen>
Set Variable Set PartyMember[2] = Mountain King 0002 <gen>
Set Variable Set PartySize = "2"
Unit - Pause PartyMember[2]
Unit - Pause Badguy[1]
Selection - Select PartyMember[1] for Player 1 (Red)
Set Variable Set Turn = "1"
Camera - Pan camera for Player 1 (Red) to (Position of Paladin 0000 <gen>) over 0 seconds
Music
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Sound - Play 13___Fight_2 <gen>
Attack
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Attack FUK
Actions
Set Variable Set DamageTemp = (Random integer number between (Strength of (Casting unit) (Exclude bonuses)) and ((Strength of (Casting unit) (Exclude bonuses)) x 2))
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (Real(DamageTemp)))
Floating Text - Create floating text that reads (String(DamageTemp)) above (Target unit of ability being cast) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Unpause
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Attack FUK
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Turn Equal to 1
Then - Actions
Wait 1.00 seconds
Unit - Pause PartyMember[1]
Unit - Unpause PartyMember[2]
Selection - Select PartyMember[2] for Player 1 (Red)
Set Variable Set Turn = "2"
Wait 1.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Turn Equal to 2
Then - Actions
Wait 1.00 seconds
Unit - Pause PartyMember[2]
Unit - Unpause Badguy[1]
Selection - Select Badguy[1] for Player 1 (Red)
Set Variable Set Turn = "3"
Unit - Order Badguy[1] to Orc Far Seer - Chain Lightning . PartyMember[(Random integer number between 1 and 2)]
Wait 1.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Turn Equal to 3
Then - Actions
Wait 1.00 seconds
Unit - Pause Badguy[1]
Unit - Unpause PartyMember[1]
Selection - Select PartyMember[1] for Player 1 (Red)
Set Variable Set Turn = "1"
Wait 1.00 seconds
Else - Actions
Dead enemy
Events
Unit - Behemoth 0001 <gen> Dies
Conditions
Actions
Sound - Stop the currently playing music theme
Wait 1.00 seconds
Sound - Play 110_Victory_Fanfare <gen>
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.