# +----------------------------------
# | List of fight flags
# +----------------------------------
# target (The player you are attacking)
# fight (the fight number)
# fight_CD (fight cooldown)
# Player_Fight (fight number for the players)
# Fight_Turn (Whoever has this flag has the turn in the fight)
# Fight_Unhealthy_Start (starting with less than full health)
# Number_Of_Fighters (number of fighters in the match)
# Fighter (what number the fighter is)
#
]>
#- holding wood qty:3
#ยป Use to change a player's health limit to 50.
#- health 50
#- heal (<#.#>) ({player}/|...)
#- hurt (<#.#>) ({player}/|...)
# (returns the size of the list)
#
#.include[three|four]
#]> < 5
Fight_Script:
type: world
events:
# +----------------------------------
# | Fight Start
# +----------------------------------
on fight command:
- determine passively fulfilled
- if ! {
- narrate "You need to specify the playername you wish to fight!"
} else {
- if ! {
- if .location>]> < 10 {
- narrate "You're too far away to initiate a fight"
} else {
# +----------------------------------
# | IMPORTANT - THE ABOVE IF STATEMENT WAS MESSED WITH TO ALLOW FOR TESTING; on release change to a ">" sign
# +----------------------------------
#Check if facing enemy
- flag player health:
- if < 20 {
- flag player Fight_Unhealthy_Start
}
- flag p@ health:
- if .flag[health]> < 20 {
- flag p@ Fight_Unhealthy_Start
}
- flag server "Fight:++"
- define NoF_ li@
- define NoF_ ].include[|]>
- flag player Player_Fight:
- flag p@ Player_Fight:
- flag server Fight_Turn_Counter_:
- narrate "Fight number<&co> has started between and " targets:p@wonderdude
- flag player target:
- flag p@ target:
- narrate "+-----------------------------------------------------+"
- narrate "| Starting fight with<&co> "
- narrate "+-----------------------------------------------------+"
- narrate "+-----------------------------------------------------+" targets:p@
- narrate "| Starting fight with<&co> " targets:p@
- narrate "+-----------------------------------------------------+" targets:p@
}
} else {
- run Fight_Cant_Fight
}
}
# +----------------------------------
# | Attack
# +----------------------------------
on attack command:
- determine passively fulfilled
- if {
- if {
- if == i@wood_sword {
- run Fight_Attack_Wood_Sword
} else {
- if == i@stone_sword {
- run Fight_Attack_Stone_Sword
} else {
- if == i@iron_sword {
- run Fight_Attack_Iron_Sword
} else {
- if == i@gold_sword || i@diamond_sword {
- run Fight_Attack_Gold_Sword
} else {
- if == i@wood_axe {
- run Fight_Attack_Wood_Axe
} else {
- if == i@stone_axe {
- run Fight_Attack_Stone_Axe
} else {
- if == i@iron_axe {
- run Fight_Attack_Iron_Axe
} else {
- if == i@gold_axe || i@diamond_axe {
- run Fight_Attack_Gold_Axe
} else {
- run Fight_Attack
}
}
}
}
}
}
}
}
- flag Fight_Turn:!
- flag server Fight_Turn_Counter_:++
- run Fight_Turn_Chooser
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Shoot
# +----------------------------------
on Shoot command:
- determine passively fulfilled
- if {
- if {
#Check for Bow
#Check for CrossBow
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Throw
# +----------------------------------
on Throw command:
- determine passively fulfilled
- if {
- if {
#Check for Daggers
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Dodge
# +----------------------------------
on Dodge command:
- determine passively fulfilled
- if {
- if {
- run Fight_Dodge
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Block
# +----------------------------------
on Block command:
- determine passively fulfilled
- if {
- if {
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Taunt
# +----------------------------------
on Taunt command:
- determine passively fulfilled
- if {
- if {
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Target
# +----------------------------------
on Target command:
- determine passively fulfilled
- if {
- if {
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Escape
# +----------------------------------
on escape command:
- determine passively fulfilled
- if {
- if {
} else {
- run Fight_Not_Your_Turn
}
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | forfeit
# +----------------------------------
on forfeit command:
- determine passively fulfilled
- if {
} else {
- narrate "You need to be in a fight to use these commands"
}
# +----------------------------------
# | Roll
# +----------------------------------
on roll command:
- determine passively fulfilled
- random {
- narrate " Rolled<&co> 0" targets:
- narrate " Rolled<&co> 1" targets:
- narrate " Rolled<&co> 2" targets:
- narrate " Rolled<&co> 3" targets:
- narrate " Rolled<&co> 4" targets:
- narrate " Rolled<&co> 5" targets:
- narrate " Rolled<&co> 6" targets:
- narrate " Rolled<&co> 7" targets:
- narrate " Rolled<&co> 8" targets:
- narrate " Rolled<&co> 9" targets:
- narrate " Rolled<&co> 10" targets:
- narrate " Rolled<&co> 11" targets:
- narrate " Rolled<&co> 12" targets:
- narrate " Rolled<&co> 13" targets:
- narrate " Rolled<&co> 14" targets:
- narrate " Rolled<&co> 15" targets:
- narrate " Rolled<&co> 16" targets:
- narrate " Rolled<&co> 17" targets:
- narrate " Rolled<&co> 18" targets:
- narrate " Rolled<&co> 19" targets:
- narrate " Rolled<&co> 20" targets:
- narrate " Rolled<&co> 21" targets:
- narrate " Rolled<&co> 22" targets:
- narrate " Rolled<&co> 23" targets:
- narrate " Rolled<&co> 24" targets:
- narrate " Rolled<&co> 25" targets:
- narrate " Rolled<&co> 26" targets:
- narrate " Rolled<&co> 27" targets:
- narrate " Rolled<&co> 28" targets:
- narrate " Rolled<&co> 29" targets:
- narrate " Rolled<&co> 30" targets:
- narrate " Rolled<&co> 31" targets:
- narrate " Rolled<&co> 32" targets:
- narrate " Rolled<&co> 33" targets:
- narrate " Rolled<&co> 34" targets:
- narrate " Rolled<&co> 35" targets:
- narrate " Rolled<&co> 36" targets:
- narrate " Rolled<&co> 37" targets:
- narrate " Rolled<&co> 38" targets:
- narrate " Rolled<&co> 39" targets:
- narrate " Rolled<&co> 40" targets:
- narrate " Rolled<&co> 41" targets:
- narrate " Rolled<&co> 42" targets:
- narrate " Rolled<&co>