Introdução
Nesta página, você descobrirá vários exemplos de poderes de boss personalizados criados com EliteScript e a WebApp. Estes exemplos diretos ilustram como utilizar múltiplas ações e outros recursos para criar poderes de boss únicos.
Além disso, demonstrações visuais acompanham cada exemplo, para que seja mais fácil entender como o script opera dentro do jogo.
Sinta-se livre para copiar qualquer um dos exemplos e usá-los em suas próprias dungeons ou mundos.
Exemplos de Poderes
Bater no Chão
Este script fará com que o boss se teletransporte 8 blocos acima do jogador que causou dano a ele, e então bata no chão. Depois disso, ele aplicará o efeito de poção de lentidão a quaisquer jogadores dentro de 3 blocos do boss, e exibirá a mensagem 'Atordoado' na tela por 3 segundos.
Expandir Exemplo
eliteScript:
SlamDown:
Events:
- EliteMobDamagedByPlayerEvent
Actions:
- action: TELEPORT
FinalTarget:
targetType: DIRECT_TARGET
offset: 0,8,0
Target:
targetType: SELF
- action: PUSH
vValue: 0,-5,0
Target:
targetType: SELF
wait: 15
- action: POTION_EFFECT
potionEffectType: SLOW
amplifier: 3
duration: 60
Target:
targetType: NEARBY_PLAYERS
range: 3
wait: 20
- action: TITLE_MESSAGE
subtitle: "Stunned!"
duration: 40
fadeIn: 10
fadeOut: 10
Target:
targetType: NEARBY_PLAYERS
range: 3
wait: 20
Cooldowns:
local: 180
global: 80
Empurrar para Longe
Este script gerará uma cúpula de 4 blocos ao redor do boss. Subsequentemente, ele iniciará um efeito de partícula na borda da zona, durando um segundo, então outra ação empurrará para longe quaisquer jogadores dentro da zona. Devido à configuração de deslocamento para o empurrão, os jogadores serão ligeiramente impulsionados para cima. Finalmente, o script enviará uma mensagem a quaisquer jogadores dentro da zona.
Expandir Exemplo
eliteScript:
PushAway:
Events:
- EliteMobDamagedEvent
Zone:
shape: DOME
radius: 4
borderRadius: 3
Target:
targetType: SELF
track: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: CLOUD
Target:
targetType: ZONE_BORDER
track: true
repeatEvery: 5
times: 4
- action: PUSH
Target:
targetType: ZONE_FULL
track: true
RelativeVector:
SourceTarget:
targetType: SELF
DestinationTarget:
targetType: ACTION_TARGET
normalize: true
multiplier: 1.0
offset: 0,0.2,0
repeatEvery: 1
times: 20
- action: MESSAGE
sValue: "&cCool boss!: &fVAI EMBORA!"
Target:
targetType: ZONE_FULL
repeatEvery: 10
times: 2
Cooldowns:
local: 140
global: 80
Chuva de Flechas
Faz um script que desenhará um círculo no chão ao redor do jogador que danificou o mob, também mostra uma mensagem na tela dizendo ao jogador para sair do círculo. Então 2 segundos depois ele disparará flechas para baixo naquele mesmo local, mas de 10 blocos acima.
Expandir Exemplo
eliteScript:
MakeCircle:
Events:
- EliteMobDamagedByPlayerEvent
Zone:
shape: CYLINDER
radius: 5
borderRadius: 4
height: 1
Target:
targetType: DIRECT_TARGET
track: false
Actions:
- action: SPAWN_PARTICLE
Target:
targetType: ZONE_BORDER
track: false
coverage: 1.0
repeatEvery: 5
times: 8
particles:
- particle: FLAME
- action: TITLE_MESSAGE
Target:
targetType: DIRECT_TARGET
fadeOut: 10
duration: 20
fadeIn: 10
subtitle: Move out of the zone!
- action: RUN_SCRIPT
scripts:
- "ArrowRain"
Cooldowns:
local: 160
global: 80
ArrowRain:
Zone:
shape: CYLINDER
radius: 5
borderRadius: 4
height: 1
Target:
targetType: DIRECT_TARGET
track: false
offset: 0,10,0
Actions:
- action: SUMMON_ENTITY
wait: 40
sValue: ARROW
Target:
targetType: ZONE_FULL
track: false
vValue: 0,-1,0
repeatEvery: 10
times: 4
Aura de Fogo
Isto criará um script que gerará partículas ao redor do boss usando a zona cilíndrica, durará 6 segundos. O boss também receberá a tag FireOn por 6 segundos.
Se os jogadores atacarem o boss enquanto a tag estiver ativa, então os jogadores serão incendiados por 1 segundo. Isso é feito usando condições, o script SetOnFire só poderá ser executado se o boss tiver a tag correspondente FireOn.
Expandir Exemplo
eliteScript:
Visual:
Events:
- PlayerDamagedByEliteMobEvent
Zone:
shape: CYLINDER
radius: 2
height: 3
Target:
targetType: SELF
track: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: FLAME
Target:
targetType: ZONE_FULL
track: true
coverage: 1.0
repeatEvery: 5
times: 24
- action: TAG
tags:
- "FireOn"
duration: 120
Target:
targetType: SELF
Cooldowns:
local: 180
global: 80
SetOnFire:
Events:
- EliteMobDamagedByPlayerEvent
Actions:
- action: SET_ON_FIRE
duration: 20
Target:
targetType: DIRECT_TARGET
Conditions:
Target:
targetType: SELF
conditionType: BLOCKING
hasTags:
- "FireOn"
Linhas de Veneno
Este script criará duas zonas cubóides centralizadas no boss. A IA do boss é configurada para ficar desligada por 2 segundos. As zonas cubóides são configuradas de tal maneira que formarão um símbolo de mais no chão.
O script então fará partículas de nuvem por 2 segundos nas zonas e então fará partículas de fumaça e aplicará o efeito de poção de veneno às zonas por 3 segundos.
Expandir Exemplo
eliteScript:
PoisonLine1:
Events:
- EliteMobDamagedByPlayerEvent
Zone:
shape: CUBOID
x: 20
y: 1
z: 2
Target:
targetType: SELF
track: false
Actions:
- action: SET_MOB_AI
bValue: false
duration: 40
Target:
targetType: SELF
scripts:
- "PoisonLine2"
- action: SPAWN_PARTICLE
particles:
- particle: CLOUD
Target:
targetType: ZONE_FULL
coverage: 1
repeatEvery: 5
times: 8
- action: SPAWN_PARTICLE
particles:
- particle: SMOKE_NORMAL
Target:
targetType: ZONE_FULL
coverage: 1
wait: 40
repeatEvery: 5
times: 12
- action: POTION_EFFECT
potionEffectType: POISON
amplifier: 4
duration: 50
Target:
targetType: ZONE_FULL
wait: 40
repeatEvery: 5
times: 12
Cooldowns:
local: 200
global: 80
PoisonLine2:
Zone:
shape: CUBOID
x: 2
y: 1
z: 20
Target:
targetType: SELF
track: false
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: CLOUD
Target:
targetType: ZONE_FULL
coverage: 1
repeatEvery: 5
times: 8
- action: SPAWN_PARTICLE
particles:
- particle: SMOKE_NORMAL
Target:
targetType: ZONE_FULL
coverage: 1
wait: 40
repeatEvery: 5
times: 12
- action: POTION_EFFECT
potionEffectType: POISON
amplifier: 4
duration: 50
Target:
targetType: ZONE_FULL
wait: 40
repeatEvery: 5
times: 12
Saltar
Este script cria uma zona cilíndrica de 10 blocos centralizada no boss e então aplica efeitos de partícula e empurrão à zona por 10 segundos.
A ação de empurrão empurra os jogadores ligeiramente para cima a cada tick, criando a ilusão de que os jogadores estão saltando enquanto estão na zona.
Expandir Exemplo
eliteScript:
Bounce:
Events:
- EliteMobDamagedByPlayerEvent
Zone:
shape: CYLINDER
radius: 10
height: 2
Target:
targetType: SELF
track: false
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: EXPLOSION_NORMAL
repeatEvery: 10
times: 20
Target:
targetType: ZONE_FULL
track: false
coverage: 0.2
- action: PUSH
vValue: 0,0.4,0
Target:
targetType: ZONE_FULL
repeatEvery: 1
times: 200
Cooldowns:
local: 220
global: 80
Invocar
Este script criará uma zona cilíndrica (posicionada 6 blocos acima do jogador devido ao deslocamento aplicado) centralizada ao redor do jogador que danificou o boss. Além disso, exibirá uma mensagem na tela para aquele jogador.
Após um atraso de 2 segundos, reforços serão gerados na zona designada. No entanto, apenas uma porção da zona será ocupada por reforços já que usamos coverage. Se o jogador falhar em eliminar todos os reforços, eles automaticamente desaparecerão após 20 segundos (400 ticks).
Expandir Exemplo
eliteScript:
Summon:
Events:
- EliteMobDamagedByPlayerEvent
Zone:
shape: CYLINDER
radius: 3
height: 1
Target:
targetType: DIRECT_TARGET
offset: 0,6,0
Actions:
- action: SUMMON_REINFORCEMENT
sValue: "fc_boss.yml"
duration: 400
Target:
targetType: ZONE_FULL
coverage: 0.2
wait: 40
- action: TITLE_MESSAGE
subtitle: "Friends! Help!!!"
duration: 30
fadeIn: 10
fadeOut: 10
Target:
targetType: DIRECT_TARGET
Cooldowns:
local: 333
global: 80
Zonas de Poção
Este script é ativado quando um jogador danifica o boss. Ele então executa o script PotionZoneBad ou PotionZoneGood.
No script PotionZoneBad, uma zona cilíndrica é gerada ao redor de jogadores próximos que estão dentro de 20 blocos do boss. Ela produz efeitos de partícula de nuvem e fumaça grande com uma cobertura especificada, inflige o efeito de poção de wither, e entrega uma mensagem aos jogadores próximos.
No script PotionZoneGood, uma zona cilíndrica é gerada ao redor de jogadores que estão dentro de 20 blocos do boss. Os efeitos de partícula para este script são invertidos. Este script aplica um efeito de poção de cura em vez de wither e envia uma mensagem aos jogadores próximos.
Expandir Exemplo
eliteScript:
Trigger:
Events:
- EliteMobDamagedByPlayerEvent
Actions:
- action: RUN_SCRIPT
scripts:
- "PotionZoneBad"
- "PotionZoneGood"
onlyRunOneScript: true
Cooldowns:
local: 110
global: 80
PotionZoneBad:
Zone:
shape: CYLINDER
height: 2
radius: 5
Target:
targetType: NEARBY_PLAYERS
range: 20
track: false
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: CLOUD
Target:
targetType: ZONE_FULL
coverage: 0.3
track: false
repeatEvery: 10
times: 4
- action: SPAWN_PARTICLE
particles:
- particle: SMOKE_LARGE
Target:
targetType: ZONE_FULL
coverage: 0.3
track: false
wait: 40
repeatEvery: 10
times: 6
- action: POTION_EFFECT
potionEffectType: WITHER
amplifier: 3
duration: 80
Target:
targetType: ZONE_FULL
track: false
wait: 40
repeatEvery: 10
times: 6
- action: MESSAGE
sValue: "&cCool boss!: &fSinta a queimadura!"
Target:
targetType: NEARBY_PLAYERS
range: 20
PotionZoneGood:
Zone:
shape: CYLINDER
height: 2
radius: 5
Target:
targetType: NEARBY_PLAYERS
range: 20
track: false
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: SMOKE_LARGE
Target:
targetType: ZONE_FULL
coverage: 0.3
track: false
repeatEvery: 10
times: 4
- action: SPAWN_PARTICLE
particles:
- particle: CLOUD
Target:
targetType: ZONE_FULL
coverage: 0.3
track: false
wait: 40
repeatEvery: 10
times: 6
- action: POTION_EFFECT
potionEffectType: HEAL
amplifier: 1
duration: 80
Target:
targetType: ZONE_FULL
track: false
wait: 40
repeatEvery: 10
times: 6
- action: MESSAGE
sValue: "&cCool boss!: &fSinta a... Espera, esta é a errada."
Target:
targetType: NEARBY_PLAYERS
range: 20
Ondas Cegas
Este script inicia duas ondas de raio no chão projetadas em ambas as direções X positiva e negativa originando-se do boss.
Utilizamos o parâmetro offset para determinar o comprimento e tamanho dos raios, especificamente definindo o valor Z. Adicionalmente, especificamos a direção de propagação da onda definindo os valores X. (Esta é apenas uma explicação sobre como este script específico usa esses valores, você não precisa fazer o seu exatamente assim)
Embora seja possível ajustar os valores Y para aumentar a altura das ondas de raio, deixamos em 0 para permitir aos jogadores a opção de pular sobre os raios.
O parâmetro animationDuration dita o tempo necessário para as ondas de raio viajarem dos alvos aos alvos finais. Reduzir este valor tornaria os raios mais rápidos e mais desafiadores de evitar.
Subsequentemente, efeitos de partícula e poção são aplicados. Jogadores que falharem em evitar ou pular sobre as ondas de raio serão cegados por 5 segundos (100 ticks).
Expandir Exemplo
eliteScript:
Blind:
Events:
- EliteMobDamagedByPlayerEvent
Zone:
shape: TRANSLATING_RAY
Target:
targetType: SELF
offset: 0,0,5
track: false
FinalTarget:
targetType: SELF
offset: 10,0,5
track: false
Target2:
targetType: SELF
offset: 0,0,-5
track: false
FinalTarget2:
targetType: SELF
offset: 10,0,-5
track: false
animationDuration: 100
ignoresSolidBlocks: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: SMOKE_NORMAL
Target:
targetType: ZONE_FULL
track: false
coverage: 1.0
repeatEvery: 5
times: 20
- action: POTION_EFFECT
potionEffectType: BLINDNESS
amplifier: 5
duration: 100
Target:
targetType: ZONE_FULL
track: true
repeatEvery: 1
times: 100
scripts: "Blind2"
Cooldowns:
local: 200
global: 80
Blind2:
Events:
- EliteMobDamagedByPlayerEvent
Zone:
shape: TRANSLATING_RAY
Target:
targetType: SELF
offset: 0,0,5
track: false
FinalTarget:
targetType: SELF
offset: -10,0,5
track: false
Target2:
targetType: SELF
offset: 0,0,-5
track: false
FinalTarget2:
targetType: SELF
offset: -10,0,-5
track: false
animationDuration: 100
ignoresSolidBlocks: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: SMOKE_NORMAL
Target:
targetType: ZONE_FULL
track: false
coverage: 1.0
repeatEvery: 5
times: 20
- action: POTION_EFFECT
potionEffectType: BLINDNESS
amplifier: 5
duration: 100
Target:
targetType: ZONE_FULL
track: true
repeatEvery: 1
times: 100
Parede de Gelo
Este script cria 3 raios rotativos centralizados no boss. Precisamos de 3 raios rotativos diferentes já que não podemos definir a altura do raio, então usamos vários scripts e offset para fazer os raios se empilharem em altura para que apareçam como uma parede rotativa singular.
Todos os 3 scripts têm zonas idênticas exceto o offset sendo diferente. Eles são configurados para ter 6 blocos de comprimento começando do boss e são configurados para fazer uma rotação yaw de 360 graus em 10 segundos (200 ticks).
Todos os scripts têm efeitos de partícula configurados e aplicarão a ação VISUAL_FREEZE por 5 segundos (100 ticks) a quaisquer jogadores que sejam atingidos pelas paredes de raio.
Expandir Exemplo
eliteScript:
Trigger:
Events:
- EliteMobDamagedByPlayerEvent
Actions:
- action: RUN_SCRIPT
scripts:
- "FreezeWall"
- "FreezeWall2"
- "FreezeWall3"
Cooldowns:
local: 300
global: 80
FreezeWall:
Zone:
shape: ROTATING_RAY
Target:
targetType: SELF
track: false
Target2:
targetType: SELF
offset: 6,0,0
track: false
yawRotation: 360
animationDuration: 200
ignoresSolidBlocks: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: SNOWFLAKE
repeatEvery: 10
times: 20
Target:
targetType: ZONE_FULL
track: false
coverage: 1.0
- action: VISUAL_FREEZE
duration: 100
Target:
targetType: ZONE_FULL
track: false
repeatEvery: 1
times: 200
FreezeWall2:
Zone:
shape: ROTATING_RAY
Target:
targetType: SELF
track: false
offset: 0,1,0
Target2:
targetType: SELF
track: false
offset: 6,1,0
yawRotation: 360
animationDuration: 200
ignoresSolidBlocks: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: SNOWFLAKE
repeatEvery: 10
times: 20
Target:
targetType: ZONE_FULL
track: false
coverage: 1.0
- action: VISUAL_FREEZE
duration: 100
Target:
targetType: ZONE_FULL
track: false
repeatEvery: 1
times: 200
FreezeWall3:
Zone:
shape: ROTATING_RAY
Target:
targetType: SELF
track: false
offset: 0,2,0
Target2:
targetType: SELF
track: false
offset: 6,2,0
yawRotation: 360
animationDuration: 200
ignoresSolidBlocks: true
Actions:
- action: SPAWN_PARTICLE
particles:
- particle: SNOWFLAKE
repeatEvery: 10
times: 20
Target:
targetType: ZONE_FULL
track: false
coverage: 1.0
- action: VISUAL_FREEZE
duration: 100
Target:
targetType: ZONE_FULL
track: false
repeatEvery: 1
times: 200