List of script commands (2024)

Previous Thread

Next Thread

Print Thread

List of script commands (1)

List of script commands

#50680003/07/14 01:33 PM

Joined: May 2014

dubiouschickenList of script commands (3)OP

apprentice

OPList of script commands (4)

dubiouschicken

apprentice

Joined: May 2014

Here are lists of all commands used in the official Larian scripts. Typing them in the script editor will give you a tooltip with their arguments.

ALPHABETICAL LIST OF COMMANDS
Commands used in charscripts

Commands used in itemscripts

LISTS INCLUDING ARGUMENTS AND EXPLANATIONS
courtesy of Norbyte
Functions: https://dl.dropboxusercontent.com/u/32263228/dos/scriptcommands_1.0.47.txt
Triggers: https://dl.dropboxusercontent.com/u/32263228/dos/triggers_1.0.47.txt
Behavior triggers: https://dl.dropboxusercontent.com/u/32263228/dos/behavior_triggers_1.0.47.txt

EXAMPLES OF CALLS AS USED IN OFFICIAL SCRIPTS
Commands used in charscripts, with unique argument lists
Commands used in itemscripts, with unique argument lists


Last edited by dubiouschicken; 03/07/14 04:34 PM.

List of script commands (6)

Re: List of script commands

dubiouschicken#50685703/07/14 02:15 PM

Joined: Jun 2013

CromcromList of script commands (8)

addict

List of script commands (9)

Cromcrom

addict

Joined: Jun 2013

Amazing, thanks a lot List of script commands (11)

Any chance for a simple scripting "hello world" tut ?


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere

List of script commands (12)

Re: List of script commands

dubiouschicken#50688703/07/14 02:39 PM

Joined: May 2014

dubiouschickenList of script commands (14)OP

apprentice

OPList of script commands (15)

dubiouschicken

apprentice

Joined: May 2014

I've managed to replace a Larian script but not make a new one. It's not enough to add it in the script editor, you need to add it and its parameters to a .lsb file. I assume Larian has a tool for this instead of changing the .lsb manually every time they make a new script. If this tool has been released then I haven't found it yet.


List of script commands (17)

Re: List of script commands

dubiouschicken#50706103/07/14 04:16 PM

Joined: Apr 2013

N

NorbyteList of script commands (18)

addict

List of script commands (19)

Norbyte

addict

N

Joined: Apr 2013

List of script commands (20)

Re: List of script commands

dubiouschicken#50706603/07/14 04:17 PM

Joined: Jun 2014

Dark_AnsemList of script commands (22)

veteran

List of script commands (23)

List of script commands (24)

Dark_Ansem

veteran

List of script commands (25)

Joined: Jun 2014

Norbyte, i want to hug you List of script commands (27)


List of script commands (28)

Re: List of script commands

dubiouschicken#50707003/07/14 04:22 PM

Joined: Mar 2014

WoverdudeList of script commands (30)

stranger

List of script commands (31)

List of script commands (32)

Woverdude

stranger

List of script commands (33)

Joined: Mar 2014

Thanks! We really need a wiki for all of this stuff.


List of script commands (35)

Re: List of script commands

dubiouschicken#51163207/07/14 11:19 AM

Joined: Jul 2014

Magic MissileList of script commands (37)

apprentice

List of script commands (38)

Magic Missile

apprentice

Joined: Jul 2014

Dubious, Would you happen to know the command for granting a player character skill/ability/trait points?

Can only find the commands for granting specific increases and specific skills/traits, For a quest i'm working on i need points that player can spend freely

*EDIT
Attributes; CharacterGetAbility(_AbilityWillpower, _Char, Willpower)
I'm assuming i should replace _char with _player# , and, both instances of willpower with another attribute's name(will this command also grant like an increase to Geomancer for example?)

Spells/skills; CharacterAddSkill
Need list of skills

Traits; CharacterHasTalent
Need list of traits

Where oh where can i find the code names of Skills and Traits, would you happen to have a list somewhere?


Last edited by Magic Missile; 07/07/14 11:29 AM.

List of script commands (40)

Re: List of script commands

dubiouschicken#51167007/07/14 11:48 AM

Joined: Jul 2014

R

ryukraList of script commands (41)

stranger

List of script commands (42)

ryukra

stranger

R

Joined: Jul 2014

CharacterGetAbility sounds more like that it gives you the current Willpower ability score there needs to be a SetAbility or ChangeAbility to increase the ability.

CharacterAddSkill.. you can use it in a script you assign to chars, if you look at the sidebar when you click on npc or player modes you can assign scripts to it. But there are already scripts which give you the skills.

Does somebody know how to use the scripteditor? D:


List of script commands (43)

Re: List of script commands

Norbyte#54774124/08/14 02:46 PM

Joined: Dec 2013

SunjammerList of script commands (45)

stranger

List of script commands (46)

List of script commands (47)

Sunjammer

stranger

List of script commands (48)

Joined: Dec 2013

I was parsing through these (to generate pages for the wiki) and I noticed some of them are malformed so I thought I should list them somewhere in case Larian are interested in fixing their intellisense:

Code

// trailing ", ..."GetWeightedRandom (OUT OBJECT variable, OBJECT value, INT|FLOAT weight, ...)// trailing ", ..."Log (STRING text, ...)// trailing ","ContainsSurface (GAMEOBJECT|FLOAT3 source, FLOAT radius, SURFACE type,)// trailing ","IsSurface (GAMEOBJECT|FLOAT3 source, FLOAT radius, SURFACE type,)// "to follow" is not a valid identifierCharacterGetFollow (OUT CHARACTER to follow, CHARACTER source)// "current enemy" is not a valid identifierCharacterGetEnemy (OUT CHARACTER current enemy, CHARACTER source)

Is there a process for submitting toolset bugs?


Sunjammer
Code Monkey
Divinity Engine Wiki

List of script commands (50)

Re: List of script commands

dubiouschicken#54775424/08/14 03:38 PM

Joined: Apr 2013

N

NorbyteList of script commands (51)

addict

List of script commands (52)

Norbyte

addict

N

Joined: Apr 2013

Those may not be toolset issues, but bugs in my function extraction methods List of script commands (53)
I think I got those signatures by using some IDA scripts and lots of regex magic to put everything where it should be, but I might have broke something in the process.

EDIT: Scratch that, the original signatures are broken:

Code

.text:102E3C12 lea ecx, [esp+0B64h+var_57C].text:102E3C19 call esi ; ls::STDString::STDString(char const * const).text:102E3C1B push offset aOutCharacterCu ; "OUT CHARACTER:current enemy, CHARACTER:source"

Last edited by Norbyte; 24/08/14 03:40 PM.

List of script commands (54)

Re: List of script commands

dubiouschicken#54777524/08/14 04:53 PM

Joined: Dec 2013

SunjammerList of script commands (56)

stranger

List of script commands (57)

List of script commands (58)

Sunjammer

stranger

List of script commands (59)

Joined: Dec 2013

You need to have more faith in your magic!


Sunjammer
Code Monkey
Divinity Engine Wiki

List of script commands (61)

Re: List of script commands

dubiouschicken#55761128/10/14 04:54 PM

Joined: Apr 2013

K

KoverasList of script commands (62)

apprentice

List of script commands (63)List of script commands (64)

List of script commands (65)

Koveras

apprentice

List of script commands (66)List of script commands (67)

K

Joined: Apr 2013

Originally Posted by dubiouschicken

I've managed to replace a Larian script but not make a new one. It's not enough to add it in the script editor, you need to add it and its parameters to a .lsb file. I assume Larian has a tool for this instead of changing the .lsb manually every time they make a new script. If this tool has been released then I haven't found it yet.

Have you been able to find a way to add new custom scripts since then?


Last edited by Koveras; 28/10/14 04:56 PM.

List of script commands (68)

Re: List of script commands

Koveras#55761928/10/14 07:10 PM

Joined: Jul 2014

R

RhidianList of script commands (69)

addict

List of script commands (70)

Rhidian

addict

R

Joined: Jul 2014

Originally Posted by Koveras

Originally Posted by dubiouschicken

I've managed to replace a Larian script but not make a new one. It's not enough to add it in the script editor, you need to add it and its parameters to a .lsb file. I assume Larian has a tool for this instead of changing the .lsb manually every time they make a new script. If this tool has been released then I haven't found it yet.

Have you been able to find a way to add new custom scripts since then?

Adding custom character/item scripts involves "Importing" the script file as a Resource via the Resource manager in addition to actually creating it yourself. Only after it is imported can you select it as a script for an object.


Moderated by Bvs, ForkTong, gbnf, Issh, Kurnster, Larian_QA, LarSeb, Lar_q, Lynn, Monodon, Raze, Stephen_Larian


Link Copied to Clipboard

List of script commands (2024)
Top Articles
Latest Posts
Article information

Author: Prof. Nancy Dach

Last Updated:

Views: 6095

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.