• Crazy
  • Cool
  • Awesome
  • Angry
  • Happy
  • Hungry
  • Sad
  • Shy
  • Tired
  • User Tag List

    Thanks Thanks:  0
    Likes Likes:  0
    Dislikes Dislikes:  0
    Results 1 to 10 of 10

    Thread: [WIP] Scripting Guide - Under Construction - Posponed

    1. #1
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default [WIP] Scripting Guide - Under Construction - Posponed

      Stevios Scripting Guide

      Welcome to my guide it is still under construction so bare with me

      Topics:

      - The X Editor - [MSCI]



      just found out cycrows just started making one *doh*


      So say we all!
      0 0 0
       

    2. #2
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default The X Editor

      here is a list of all the commands in the script editor

      General Commands
      Audio Commands
      Logbook Commands
      [s:8f7b421d10]Fly Commands[/s:8f7b421d10]
      [s:8f7b421d10]Trade Commands[/s:8f7b421d10]
      [s:8f7b421d10]General Object Commands[/s:8f7b421d10]
      [s:8f7b421d10]Universe and Sector Commands[/s:8f7b421d10]



      So say we all!
      0 0 0
       

    3. #3
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default General Commands

      'General commands' Menu



      Sub menus


      Flow Controls
      Script Calls
      Arrays
      Strings
      Math




      Code:
      <RetVar/IF><Expression>
      
      inc <RetVar> =
      
      dec <RetVar> =
      
      @<RetVar/IF>wait <Var/Number> ms
      
      @<RetVar/IF>wait randomly for <Var/Number> to <Var/Number>ms
      
      <RetVar> = random value from 0 to <Var/Number> -1
      
      <RetVar> = script engine version
      
      <RetVar> = random value from <Var/Number> to <Var/Number> -1
      
      *<Comment>
      
      <RetVar> = = get script priority
      
      <RefObj> -> start task <Var/Number> with script <script name> and prio <Var/Number>&#58; arg1=<value> arg2=<value> arg3=<value> arg4=<value> arg5=<value>
      
      <RefObj> -> interrupt task <Var/Number> with script <script name> and prio <Var/Number>&#58; arg1=<value> arg2=<value> arg3=<value> arg4=<value>
      
      <RefObj> interrupt with script <Script Name> and prio <Var/Number>&#58; arg1=<Value> arg2=<Value> arg3=<Value> arg4=<Value>
      
      set script priority to <Var/Number>
      
      <RetVar/IF> is script with prio <Var/Number> on stack
      
      <RetVar/IF> get task ID
      
      <RetVar/IF> get task PID
      
      <RefObj> interrupt with script <Script Name> and prio <Var/Number>
      
      <RefObj> connect ship command/signal <Object Command/Signal> to script <Script Name> with prio <Var/Number>
      
      <RefObj> set ship command/signal <Object Command/Signal> to global default behaviour
      
      <RefObj> ignore ship command/signal <Object Command/Signal>
      
      enable signal/interrupt handling&#58; <Var/Number>
      
      <RetVar/IF> is signal/interrupt handling on
      
      global script map&#58; set&#58; key=<Object Command/Signal>,class=<Var/Class>,race=<Var/Race>,script=<Script Name>,prio=<Var/Number>
      
      global script map&#58; remove&#58; key=<Object Command/Signal>,class=<Var/Class>,race=<Var/Race>
      
      global script map&#58; ignore&#58; key=<Object Command/Signal>,class=<Var/Class>,race=<Var/Race>
      
      set script command upgrade&#58; command=<Object Command/Signal> upgrade=<Var/Ware>
      
      <RetVar> = get script command upgrade&#58; command=<Object Command/Signal>
      
      set script command&#58; <Object Command/Signal>
      
      <RetVar/IF> get script command
      
      set script command target&#58; <Value>
      
      <RetVar/IF> get script command target
      
      <RetVar> = datatyp&#91;<Value>&#93;
      
      <RetVar/IF> is datatyp&#91;<Value>&#93; == <Var/Script Data Type>
      
      <RetVar> = read text&#58; page=<Var/Number> id=<Var/Number>
      
      <RetVar> = sprintf&#58; fmt=<Var/String>,<Value>,<Value>,<Value>,<Value>,<Value>
      
      <RetVar> = sprintf&#58; pageid=<Var/Number> textid=<Var/Number>,<Value>,<Value>,<Value>,<Value>,<Value>
      
      load text&#58; id=<Var/Number>
      
      <RetVar> = state of news article&#58; page=<Var/Number> id=<Var/Number>
      
      set state of news article&#58; page=<Var/Number> id=<Var/Number> to <Var/Number>
      
      <RetVar/IF> system date is month=<Var/Number>,day=<Var/Number>
      
      <RetVar> = playing time
      
      infinite loop detection enabled=<Var/Number>
      
      set script command upgrade&#58; command=<Object Command/Signal> upgrade=<Var/Ware> script=<Script Name>
      
      <RefObj> set local variable&#58; name=<Var/String> value=<Value>
      
      <RetVar/IF><RefObj> get local variable&#58; name=<Var/String>
      
      set global variable&#58; name=<Var/String> value=<Value>
      
      <RetVar/IF> get global variable&#58; name=<Var/String>
      
      al engine&#58; register script =<Script Name>
      
      al engine&#58; unregister script <Script Name>
      
      al engine&#58; set plugin <Var/String> description to <Var/String>
      
      al engine&#58; set plugin <Var/String> timer interval to <Var/Number> s
      
      <RetVar> = get script version
      
      <RetVar> = get script name
      
      <RetVar/IF> = is plot <Var/Number> state flag <Var/Number>
      
      <RetVar> = get random name&#58; race=<Var/Race>
      
      <RetVar> = get Khaak aggression level
      
      set Khaak aggression level to <Var/Number>
      ...description&#58; switch level &#123; case 0&#58; peaceful; case 100&#58; ; Very aggressive;&#125; default = 20;
      
      <RetVar/IF> <RefObj>is script <Script Name> on stack of task=<Var/Number>
      
      <RetVar/IF> <RefObj>is task<Var/Number> in use
      
      register quest script<Script Name> instance multiple=<Var/Number>
      
      set quest state with message&#58; quest=<Var/Quest> state=<Var/Number> msg=<Var/String>
      
      set quest/event<Var/Quest> timer to <Var/Number>ms
      
      set quest<Var/Quest> timeout to <Var/Number>
      
      <RefObj> add event listener&#58; quest/event=<Var/Quest> objevent=<Var/Number> script=<Script Name>
      
      <RefObj> remove event listener&#58; quest/event=<Var/Quest>
      
      <RetVar/IF> display news article&#58; page=<Var/Number> newsid=<Var/Number> occurrences=<Var/Number> maxoffertime=<Var/Number> maxtime=<Var/Number> placeholder&#58; race1=<Var/Number> race1=<Var/Number> customarray=<Var/Array>
      
      change event news availabilty&#58; <Var/Number> race=<Var/Race> sector=<Var/Sector> jumps=<Var/Number>
      
      <RetVar> = register hotkey <Var/String> to call script <Script Name>
      
      unregister hotkey <Var/Number>
      
      register god event&#58; script= <Script Name>mask=<Var/Number>
      
      abort god event&#58; <Var/Quest>
      
      finish god event&#58; <Var/Quest>
      
      <RefObj> connect wing command/signal <Object Command/Signal> to script <Script Name> with prio <Var/Number>
      
      <RetVar/IF> is new script version available



      So say we all!
      0 0 0
       

    4. #4
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Flow Control

      'General Commands' -> 'Flow Control' Menu


      Code:
      end conditional
      
      else
      
      continue
      
      break
      
      goto label <Label>
      
      define label <Label>
      
      gosub <Label>
      
      endsub



      So say we all!
      0 0 0
       

    5. #5
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Script Calls

      'General Commands' -> 'Script Calls' Menu


      Code:
      @<RetVar/IF/START><RefObj> call script <Script Name>&#58;<Parameter>
      
      return <Value>



      So say we all!
      0 0 0
       

    6. #6
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Arrays

      'General Commands' -> 'Arrays' Menu



      Code:
      <RetVar> = array alloc&#58; size=<Var/Number>
      
      <RetVar/IF> <Var/Array>&#91;<Var/Number>&#93;
      
      <Var/Array>&#91;<Var/Number>&#93; = <Value>
      
      <RetVar/IF> = size of array <Var/Array>
      
      <RetVar> = clone array <Var/Array>&#58; index <Var/Number>... <Var/Number>
      
      copy array <Var/Array> index <Var/Number> ... <Var/Number> into array <Var/Array> at index <Var/Number>
      
      insert <Value> into array <Var/Array> at index <Var/Number>
      
      append <Value> to array <Var/Array>
      
      remove element from array <Var/Array> at index <Var/Number>
      
      resize array <Var/Array> to <Var/Number>
      
      <RetVar/IF> <Var/Array>&#91;<Var/Number>&#93;&#91;<Var/Number>&#93;
      
      <Var/Array>&#91;<Var/Number>&#93;&#91;<Var/Number>&#93; = <Value>
      
      <RetVar> = get index of <Value> in array<Var/Array> offset =<Var/Number> +1
      
      <Var/Array>&#91;<Var/Number>&#93; = <Var/Array>&#91;<Var/Number>&#93;



      So say we all!
      0 0 0
       

    7. #7
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Strings

      'General Commands' -> 'String' Menu



      Code:
      <RetVar/IF> = get length of string <Var/String>
      
      <RetVar> = find position of pattern <Var/String> in <Var/String>
      
      <RetVar> = get substring of <Var/String> offset =<Var/Number> length=<Var/Number>
      
      <RetVar> = string <Var/String> to integer
      
      <RetVar> = substitute in string <Var/String>&#58; pattern <Var/String> with <Var/String>
      
      <RetVar> = format seconds <Var/String> to Zura time string



      So say we all!
      0 0 0
       

    8. #8
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Math

      'General Commands' -> 'Math' Menu



      Code:
      <RetVar> = = fixed sin <Var/Number>
      
      <RetVar> = = fixed cos <Var/Number>
      
      <RetVar> = square root of <Var/Number>



      So say we all!
      0 0 0
       

    9. #9
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Audio Commands

      'Audio Commands' Menu



      Code:
      play sample <Var/Number>
      
      play sample&#58; incoming transmission <Var/Number>, from object <Value>
      
      <RefObj> send audio message <Var/Number> to player
      
      send incoming message <Var/String> to player&#58; display it=<Var/Number>
      
      send incoming question <Var/String> to player&#58; callback=<Script Name>
      
      <RetVar/IF/START> speak text&#58; page=<Var/Number> id=<Var/Number> priority=<Var/Number>
      
      <RefObj> send incoming message&#58; text = <Var/Sting> temporary = <Var/Number>



      So say we all!
      0 0 0
       

    10. #10
      TXU Legend Stevio's Avatar
      Credits
      9,514.57
      Points
      5,394
      This user has no status.
       
      I am:
      ----
       
      Total Contributions For

      Stevio      £ 0.00
      Total Downloaded
      0
      Total Downloaded
      0
      Main InfoStatus and ThingsPoints and CreditsOther
      Join Date
      09-03-2006
      Location
      Basestar 346' Darkroom
      Posts
      1,124

      Default Logbook Commands

      'Logbook Commands' Menu



      Code:
      write to player logbook <Value>
      
      write to player logbook&#58; printf&#58; fmt=<Var/String>,<Value>,<Value>,<Value>,<Value>,<Value>
      
      write to player logbook&#58; printf&#58; pageid=<Var/Number> textid=<Var/Number>,<Value>,<Value>,<Value>,<Value>,<Value>
      
      <RefObj> write to logbook <Value>
      
      write to log file #<Var/Number> append=<Var/Number> value=<Value>
      
      write to log file #<Var/Number> append=<Var/Number> printf&#58; fmt=<Var/String>, <Value>, <Value>, <Value>, <Value>, <Value>
      
      write to log file #<Var/Number> append=<Var/Number> printf&#58; pageid=<Var/Number> textid=<Var/Number>, <Value>, <Value>, <Value>, <Value>, <Value>



      So say we all!
      0 0 0
       

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •