Hi, I'm trying to use the script-citizens addon for NPC's I've followed the docs and am unsure why this doesn't work if anyone could help me would be great!
if difference between {VillageTaskCooldown-Kevin::%UUID of player%} and now is less than 1 day:
set {_VillagerTaskWaited::%UUID of player%} to difference between {VillageTaskCooldown-Kevin::%UUID of player%} and now
play sound "entity.villager.yes" with pitch 1 to player
send "&3&lVILLAGER KEVIN: &7There is a &e%difference between 1 day and {_VillagerTaskWaited::%UUID of player%}% &7cooldown on this task!" to player
stop
if {VillageTaskCooldown-Kevin::%UUID of player%} is "Started":
if player has 1 poppy named "&cLost Golem Poppy":
remove 1 poppy named "&cLost Golem Poppy" from player's inventory
set {VillageTaskCooldown-Kevin::%UUID of player%} to now
play sound "entity.villager.yes" with pitch 1 to player
send "&3&lVILLAGER KEVIN: &7THANKS!!!! Here is your reward:" to player
send "&7[&3Villager Task Completed: ""Kevin's Poppy Obsession""&7]" to event-player
send "&7[&a+$250,000&7]" to event-player
send "&7[&b+25,000 XP&7]" to event-player
add 250000 to {balance::%UUID of player%}
remove 25000 from {RequiredXP::%UUID of player%}
stop```