Bug Open

Input of onchat mechanics

#6819 opened by Unknown 8 months ago

Unknownreported this bug

Hello! The problem with the onChat mechanics occurs when the aura time expires but the skill still requires input.

  ExampleItem:
   Display: 'Name'
   Id: PLAYER_HEAD
   Skills:
   - skill{s=ExampleSkill} @self ~onUse
   
ExampleSkill:
 Cooldown: 3
 Skills:
- onChat{onChat=ExampleSkill2;d=40;auraName=calcolo_input;bt=true;bartimercolor=YELLOW;bartimerdisplay="&eWaiting input"} @self

ExampleSkill2
 Skills:
 - setvariable{var=skill.example;type=INTEGER;value=%math_floor(<skill.var.input>/262144)%}
 - message{m="<skill.var.example>"} @self

Furthermore, if the user tries triggering the aura two or more distinct times (after the previous aura expired), the skill will stack and when the user sends a message multiple onChat skills will be executed at once, even if no aura is active. (Even if the “maxstack” is set to 1)

So, the real problem is making sure that as soon as the aura expires, the skill no longer has to be listening for input

using: MythicMobs 5.11.2 | Minecraft 1.21.10

thanks in advance

Sign in to join the discussion.