Create a free account to remove all ad content.

Author Topic:  Script Command Documentation  (Read 32972 times)

0 Members and 1 Guest are viewing this topic.

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #40 on: July 12, 2014, 09:01:57 AM »
HasSkill: Queries player skill levels.
HasSkill [skill] [compare] [level]

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #41 on: July 12, 2014, 09:02:09 AM »
IsAvatar: Queries what skin the player is currently wearing.
IsAvatar [avatar] [true|false]

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #42 on: July 12, 2014, 09:02:22 AM »
IsBlock: Queries the block id at a location.

IsBlock [x,y,z] [block] [aux] [true|false]

Examples:

IsBlock [150,200,300] [Basalt]
IsBlock [150,200,300] [Basalt] [true]
Returns true if the block at location 150,200,300 is Basalt.

IsBlock [150,200,300] [Basalt] [false]
Returns true if the block at location 150,200,300 is not Basalt.

IsBlock [150,200,300] [Ramp] [3]
IsBlock [150,200,300] [Ramp] [3] [true]
Returns true if the block at location 150,200,300 is a Ramp AND the associated Aux data equals 3.

IsBlock [150,200,300] [Ramp] [3] [false]
Returns true if the block at location 150,200,300 is not a Ramp OR the associated Aux data is not equal to 3.
« Last Edit: June 20, 2016, 09:00:22 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #43 on: July 12, 2014, 09:02:36 AM »
IsCombat: Queries if combat is enabled.
IsCombat [true|false]

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #44 on: July 12, 2014, 09:02:49 AM »
IsDistance: Queries the distance between the player and a location.
IsDistance [x,y,z] [compare] [distance]

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #45 on: July 12, 2014, 09:03:04 AM »
IsFiniteResources: Queries if Finite Resources is enabled.
IsFiniteResources [true|false]

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #46 on: July 12, 2014, 09:03:21 AM »
IsPowered: Queries if a block is powered.
IsPowered [x,y,z] [true|false]

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #47 on: July 12, 2014, 09:03:35 AM »
IsSkills: Queries if the skill system is enabled.
IsSkills [true|false]
« Last Edit: September 11, 2014, 07:16:25 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #48 on: July 12, 2014, 09:03:50 AM »
IsRandom: Allows a randomized conditional.

IsRandom [x,y]

[x,y] - X chances in Y.

Examples:

IsRandom [1,2]
Has 1 chance in 2 (50%) of returning true.

IsRandom [3,10]
Has 3 chances in 10 (30%) of returning true.

IsRandom [34,100]
Has 34 chances in 100 (34%) of returning true.

IsRandom [1,1000]
Has 1 chance in 1000 (0.1%) of returning true.

if
   IsRandom [1,3]
then
   Notify [Well done]
else
   Notify [Bad Luck]

The following script will have a 1 in 3 chance of notifying "Well Done' otherwise it will notify "Bad Luck"
« Last Edit: September 11, 2014, 07:22:14 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #49 on: July 12, 2014, 09:04:04 AM »
IsTime: Queries the current game or player time.
IsTime [compare] [seconds]
IsTime [player] [compare] [seconds]