AdvisorCreator: type: assignment interact scripts: - 100 AdvisorCreation actions: on assignment: - trigger name:click toggle:true - health toggle:false AdvisorCreation: type: interact steps: 'NpcCreated*': click trigger: script: - chat '&b Hello what kind of npc are you here for?' - wait 10t - chat '&b There are two kinds of npcs you can get Soldiers and Citizens choose which you want.' - zap 'step:2' '2': click trigger: script: - if { - chat "&4 Welcome to the npc creation process choose Citizen:$100 or sentry:$1000 for a npc type" - zap 'step:SentryOrCitizen' } else { - chat "you aren't a leader come back when you are." } 'SentryOrCitizen': chat trigger: 'Sentry': trigger:"i want a /citizen/" script: - if [].qty[100]>] { - take money qty:100 - create player "Citizen" traits:sentry save:npccreation - narrate "A npc is created in front of you" - assignment set script:Citizen npc: - execute as_server "npc sel npc:" - execute as_server "sentry guard " } else { - chat "come back when you have enough gold" } 'Gift given': click trigger: script: - chat 'Heres your npc enjoy.' - wait 10000000000000000s - zap 'step:NpcCreated'