Previous Thread | Next Thread |
Print Thread
List of script commands #50680003/07/14 01:33 PM | |
Joined: May 2014 dubiouschicken apprentice | |
OP![]() 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 itemscripts LISTS INCLUDING ARGUMENTS AND EXPLANATIONS EXAMPLES OF CALLS AS USED IN OFFICIAL SCRIPTS Last edited by dubiouschicken; 03/07/14 04:34 PM. |
Re: List of script commands dubiouschicken#50685703/07/14 02:15 PM | |
Joined: Jun 2013 Cromcrom addict | |
![]() Cromcrom addict Joined: Jun 2013 | Amazing, thanks a lot Any chance for a simple scripting "hello world" tut ? Un chemin de 1000 lieues commence par un premier pas. |
Re: List of script commands dubiouschicken#50688703/07/14 02:39 PM | |
Joined: May 2014 dubiouschicken apprentice | |
OP![]() 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. |
Re: List of script commands dubiouschicken#50706103/07/14 04:16 PM | |
Joined: Apr 2013 N Norbyte addict | |
![]() Norbyte addict N Joined: Apr 2013 | Here is an (as of v1.0.47) complete list of available script stuff: |
Re: List of script commands dubiouschicken#50706603/07/14 04:17 PM | |
Joined: Jun 2014 Dark_Ansem veteran | |
![]() Dark_Ansem veteran Joined: Jun 2014 | Norbyte, i want to hug you |
Re: List of script commands dubiouschicken#50707003/07/14 04:22 PM | |
Joined: Mar 2014 Woverdude stranger | |
![]() Woverdude stranger Joined: Mar 2014 | Thanks! We really need a wiki for all of this stuff. |
Re: List of script commands dubiouschicken#51163207/07/14 11:19 AM | |
Joined: Jul 2014 Magic Missile apprentice | |
![]() 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 Spells/skills; CharacterAddSkill Traits; CharacterHasTalent 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. |
Re: List of script commands dubiouschicken#51167007/07/14 11:48 AM | |
Joined: Jul 2014 R ryukra stranger | |
![]() 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: |
Re: List of script commands Norbyte#54774124/08/14 02:46 PM | |
Joined: Dec 2013 Sunjammer stranger | |
![]() Sunjammer stranger Joined: Dec 2013 | Originally Posted by Norbyte Here is an (as of v1.0.47) complete list of available script stuff: 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 |
Re: List of script commands dubiouschicken#54775424/08/14 03:38 PM | |
Joined: Apr 2013 N Norbyte addict | |
![]() Norbyte addict N Joined: Apr 2013 | Those may not be toolset issues, but bugs in my function extraction methods 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. |
Re: List of script commands dubiouschicken#54777524/08/14 04:53 PM | |
Joined: Dec 2013 Sunjammer stranger | |
![]() Sunjammer stranger Joined: Dec 2013 | You need to have more faith in your magic! Sunjammer |
Re: List of script commands dubiouschicken#55761128/10/14 04:54 PM | |
Joined: Apr 2013 Location: Karlsruhe, Germany K Koveras apprentice | |
![]() Koveras apprentice K Joined: Apr 2013 Location: Karlsruhe, Germany | 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. |
Re: List of script commands Koveras#55761928/10/14 07:10 PM | |
Joined: Jul 2014 R Rhidian addict | |
![]() 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