
CNPC: Dangerous Script Extension
This mod adds some dangerous but map-appropriate script methods to CNPC.
CNPC: Dangerous Script Extension 1.0.5
Список изменений
Added timer support for script hosts.
Script hosts can now use timer methods similar to NPC timers. This allows smoother particle animation weapons, advanced tick-based weapon effects, looping skills, and other complex scripted behaviors.
One important reason for adding this system is to avoid putting everything inside player scripts.
Using only player scripts makes special weapons difficult to manage:
It is inconvenient for maps with many custom weapons. Different weapons may conflict with each other. It is not practical to create one player script page for every weapon.
Now, scripted items can manage their own timer logic independently.
Added global CNPC API support for script hosts.
**You no longer need to manually use:
Java.type("noppes.npcs.api.NpcAPI").Instance()
Now you can directly use:
API**
inside script host environments.
This update is mainly focused on improving development experience for RPG maps, animated weapons, and advanced scripted combat systems.
