Paste #16381: Untitled Paste

Date: 2015/06/09 20:30:06 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


ShowIntro:
    type: task
    debug: false
    definitions: value
    script:
    - narrate "%value%Intro"
    - narrate "<npc> is npc"
    - run %value%Intro as:<npc>
    - ^run ShowJsonButton "def:<s@%value%Constants.constant[AcceptText]>|<bold><s@%value%Constants.constant[AcceptDescription]>|DoAccept|%value%"
    - ^run ShowJsonButton def:<s@%value%Constants.constant[DenyText]>|<bold><s@%value%Constants.constant[DenyDescription]>|%value%Deny|%value%"

ExampleQuestIntro:
    type: task
    debug: false
    script:
    - chat "This runs when the player clicks the quest info button."
    - chat "Put whatever you want here. Remember that the quest hasn't been accepted yet."
    - chat "The player can run the intro as many times as s/he likes."
    - ^chat "Delays will work, so remember every action without a carat has a 0.5s delay!"