You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Schadensflag":
type: world
events:
On player damaged by player:
- if <player.is_online> flag player Logoutverbot:true duration:10s
- if <context.damager.is_online> flag player:<context.damager> Logoutverbot:true duration:20s
and this Result:
As you can see damager=p@Formwandler get's recognized at the start, i also can narrate it. But as soon as i want to use it in an if question it does not work anymore
12:44:46 [INFO] +> Executing 'Event': Type='On PLAYER damaged by PLAYER'
Script='SCHADENSFLAG(WORLD)' Player='Goma_Terzu'
Context='{cause=ENTITY_ATTACK, damager=p@Formwandler,
entity=p@Goma_Terzu, damage=1.0}'
12:44:46 [INFO] +- Building event 'On PLAYER DAMAGED BY PLAYER' for
SCHADENSFLAG ------+
12:44:46 [INFO] Starting InstantQueue
'3D19C644-CAF1-49B7-80F0-AA84B9CAC98C'
12:44:46 [INFO] +- Executing dCommand: if/Goma_Terzu ------+
12:44:46 [INFO] +> [Element] Filled tag <player.is_online> with 'true'.
12:44:46 [INFO] Comparable 1: Comparable='Boolean(true)',
Operator='EQUALS', ComparedTo='Boolean(true)' -->
OUTCOME='true'
12:44:46 [INFO] +- Executing dCommand: FLAG/Goma_Terzu ------+
12:44:46 [INFO] +> Executing 'FLAG': Name='LOGOUTVERBOT' Type='PLAYER'
Action/Value='SET_VALUE(true)' duration='10.0s'
Player='Goma_Terzu'
12:44:46 [INFO] +- Executing dCommand: if/Goma_Terzu ------+
12:44:46 [INFO] ERROR! Invalid Player! 'context.damager' could not be
found. Has the player logged off?
12:44:46 [INFO] +> [Element] Filled tag <context.damager.is_online> with
'true'.
12:44:46 [INFO] Comparable 1: Comparable='Boolean(true)',
Operator='EQUALS', ComparedTo='Boolean(true)' -->
OUTCOME='true'
12:44:46 [INFO] +- Executing dCommand: FLAG ------+
12:44:46 [INFO] ERROR! Woah! Invalid arguments were specified!
12:44:46 [INFO] +> MESSAGE follows: 'Specified PLAYER-type flag with no
valid Player reference.'
12:44:46 [INFO] Usage: flag ({player}/npc/global)
[<name>([<#>])](:<action>)[:<value>] (duration:<value>)
The text was updated successfully, but these errors were encountered:
I have this script:
and this Result:
As you can see damager=p@Formwandler get's recognized at the start, i also can narrate it. But as soon as i want to use it in an if question it does not work anymore
The text was updated successfully, but these errors were encountered: