Time Wizard


Author: aufdemrand
Created: 2013-01-14T18:09:34-0500
Edited: 2013-01-31T10:05:20-0500
Denizen Version: 0.76
Views: 44
Downloads: 965
Likes: 0


WGET
Description: TIME WIZARD is a small interact script example for 0.8.4+
This script is kept simple to allow a base scripting example to extend upon.

Tell the wizard 'time', and watch the sky change before your eyes.

# TIME WIZARD is a small interact script example for 0.8.4+
# This script is kept simple to allow a base scripting example to extend upon.
#
# Tell the wizard 'time', and watch the sky change before your eyes.
# Note: Be sure the 'chat trigger' is enabled.
#
# @version 1.0.0
# @author aufdemrand

"Time Wizard":
    type: assignment

    interact scripts:
    - 10 The Time to Change
    
    actions:
        on assignment:
        - trigger name:click toggle:true
        - trigger name:chat toggle:true
 

"The Time to Change":
    type: interact
  
    steps:
        'I can change time*':

            click trigger:
                script:
                - chat "I'm just an old wizard out of a job. I can change the <light_purple>
                  time<white> for you, just ask!"
                - chat "What do you say?"

            chat trigger:
                'Sure thing':
                    trigger: Let's do it, change the /TIME/.
                    script:
                    - engage now
                    - ^narrate 'The Time Wizard seems to warp the space in front of you.' 
                    - ^cast night_vision duration:10s
                    - ^playsound sound:ambience_cave location:<player.location>
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - execute as_server 'time add 1000'
                    - disengage
                    - chat 'It feels good to do magic again. Thanks for that.'
 




Comments
No one has posted a comment! Post one below: