- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


Titlecreation
TypeDenizen Script
Date2014/07/11 12:04:02 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
5000
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 <player.in_group[TownLeader]||player.in_group[Leader]> {  
              - 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 [<player.inventory.contains[<371>].qty[100]>] {
           - take money qty:100
           - create player "Citizen<npc.number>" <player.location> traits:sentry save:npccreation 
           - narrate "A npc is created in front of you"          
           - assignment set script:Citizen npc:<entry[npccreation].created_npc> 
           - execute as_server "npc sel npc:<entry[npccreation].created_npc>"
           - execute as_server "sentry guard <player.name>"
           } else {
           - chat "come back when you have enough gold"
           }
    'Gift given': 
        click trigger: 
            script: 
            - chat 'Heres your npc enjoy.'
            - wait 10000000000000000s
            - zap 'step:NpcCreated'



RawRaw



Pastes made: 79782