Date: 2014/06/25 14:45:53 UTC-07:00
Type: Denizen Script
AdvisorCreator:
type: assignment
interact scripts:
- 100 AdvisorCreation
AdvisorCreation:
type: interact
steps:
'NpcGiven*':
click trigger:
script:
- chat '&b Hello are you here for a advisor?'
- wait 10t
- chat '&b For a Advisor you will need the leader rank if you have the leader rank click me again.'
- zap 'step:2'
'2':
click trigger:
script:
- if (p@<player.name>.in_group<Leader>) {
- chat "&4 here you go heres your npc"
- create npc "Advisor" <player.location> traits:Builder|Sentry
- narrate "A npc is created in front of you"
- assignment set script:Advisor
- follow (target:<player.name>)
- zap 'step:Gift given'
}else{
- chat "you aren't a leader come back when you are."
'Gift given':
click trigger:
script:
- chat 'Heres your npc enjoy.'
- wait 10000000000000000s
- zap 'step:NpcGiven'