On npc command:
- define arg_size <context.args.size>
- if %arg_size% == 3 {
- if <context.args.get[2]> == "--assume" {
- - flag <p@player.selected_npc> posed:<c.args.get[4]>
- - narrate 'You just set an NPC's pose!'
+ - flag <p@player.selected_npc> posed:<c.args.get[3]>
+ - narrate "You just set an NPC's pose!"
}
}
timedLoop:
type: task
script:
- foreach <server.get_npcs_flagged[posed]> {
- - pose assume (For here, how would I get the npc's pose and set it to itself?)
+ - pose assume <npc.flag[posed]>
}
- wait 50s
- inject s@timedLoop