Author Topic: Scripting Wiki  (Read 3274 times)

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
Scripting Wiki
« on: August 11, 2010, 10:38:36 AM »
AngelScript documentation:
http://www.angelcode.com/angelscript/sdk/docs/manual/doc_script.html

A list of functions and classes available for scripting can be found on our wiki:
http://starruler.blind-mind.com/wiki/index.php?title=Scripting_Hooks

I apologize for its incompleteness, we will be expanding it as we can. If you wish to have an official explanation of particular functions or classes posted, please ask in this thread. As the explanations are posted, your post will be removed to keep this thread clean.
« Last Edit: August 11, 2010, 02:25:54 PM by Thy Reaper »

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
« Last Edit: September 25, 2010, 01:40:17 AM by Thy Reaper »

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
Re: Scripting Wiki
« Reply #2 on: September 25, 2010, 01:21:19 AM »
Please keep this sticky strictly related to requests about hooks for addition to the wiki. Unrelated posts have been removed.

ayrnieu

  • Distracted
  • ***
  • Posts: 383
  • Karma: +30/-8
    • View Profile
Re: Scripting Wiki
« Reply #3 on: October 01, 2010, 11:45:52 PM »
Is there more to Order than bool .isAutomation() and string@ .getName() ?

ayrnieu

  • Distracted
  • ***
  • Posts: 383
  • Karma: +30/-8
    • View Profile
Re: Scripting Wiki
« Reply #4 on: October 02, 2010, 06:15:10 PM »
http://starruler.blind-mind.com/wiki/index.php?title=Class:OrderList has some basic information, but not enough to use the orders.

of giveTransferOrder,

1. What's the string?  Can it be any string S for which obj.getState(S) returns a value?  If the object doesn't have "Midichlorians", will transferring 5 from the object give it a "Midichlorian" state with value -5?  &c.

2. What do the boolean arguments mean in all of those?

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
Re: Scripting Wiki
« Reply #5 on: October 02, 2010, 08:31:25 PM »
1. It is any state. The state must have a stored quantity on the sending ship, and remaining space (max - value) on the receiving ship.
2. Whether the order is 'subsequent' (i.e. waits till other orders, and automation orders, are finished executing/idle).

Cartman34

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Scripting Wiki
« Reply #6 on: February 14, 2012, 01:09:32 PM »
I tried to complete this page what is your policy about contribution ?
Do you accept it from anyone ? (Me ?) Do you check content modification ?
I don't always speak with the good words in English, due to the fact, you know...I'm not good in English...

The scripting developers would to know what kind of things this function can do and how to give specific order using this function.
I don't have a list of possible value/pattern but I know it works with Colonizer and it can be a solution for all.

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
Re: Scripting Wiki
« Reply #7 on: February 14, 2012, 01:26:32 PM »
You're free to edit the wiki. If we feel there is something wrong, we'll either revert it, or correct it.

seronis

  • Distracted
  • ***
  • Posts: 338
  • Karma: +25/-0
    • View Profile
    • Steam Profile Link
Re: Scripting Wiki
« Reply #8 on: August 08, 2012, 08:49:30 AM »
For those who use the SciTE editor for working on code a near perfect syntax highlighter is available at:

http://angelscript.pbworks.com/w/page/21295572/SciTE%20sintax%20highlight%20for%20AngelScript
Any code/mods I post on this site should be considered Public Domain. Borrow it, steal it, shred it into little pieces to your hearts content. I dont require credit but I appreciate bug fixes and suggestions.