Difference between revisions of "Part 1: creating a new skill"

From Divinity Engine Wiki
Jump to: navigation, search
m
m (Protected "Part 1: creating a new skill" ([Edit=⧼protect-level-larianeditonly⧽] (indefinite) [Move=⧼protect-level-larianeditonly⧽] (indefinite)))
 
(30 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
This article is part of a 4-part series on how to create, edit and use a new skill.
 +
 +
{| class="wikitable"
 +
|-
 +
| [[Part 1: creating a new skill]]
 +
|-
 +
| [[Part 2: creating a skill from existing]]
 +
|-
 +
| [[Part 3: creating and using a skillbook]]
 +
|-
 +
| [[Part 4: adding the skillbook to a vendor]]
 +
|-
 +
|}
 +
 +
This article describes how to create a blank skill entry.
 +
 +
<br />
 
== Introduction ==
 
== Introduction ==
 
Creating skills in your mod is easier than ever with our newly introduced tool, the [[Stats editor]].
 
Creating skills in your mod is easier than ever with our newly introduced tool, the [[Stats editor]].
 
To create a new, useable skill you need 3 things:
 
* A new skill entry in the stats editor
 
* A new skillbook entry in the stats editor
 
* A skillbook template
 
  
 
<br />
 
<br />
== Creating our skill ==
+
== Creating a skill ==
 
=== Step 1: Opening the Stats Editor ===
 
=== Step 1: Opening the Stats Editor ===
 
[[File:Step1_OpenStatsEditor.png|none]]
 
[[File:Step1_OpenStatsEditor.png|none]]
Line 24: Line 36:
  
 
<br />
 
<br />
[[File:Step2_CreateObjectStats.png|none]]
+
=== Step 2: Adding a projectile skill entry ===
<sub>Creating the Object document</sub>
+
[[File:Step2_BlankProjectileSkillEntry.png|none]]
 
+
<sub>Creating a blank projectile skill entry</sub>
 
 
Finally, we need to create the Object stats document. Create and open the document the same way as we did for the skill_projectile document.
 
  
<br />
 
=== Step 2: Creating a new Skill ===
 
[[File:Step3_CopySkill.png|none]]
 
<sub>Copying an existing skill</sub>
 
  
 +
Finally, we create an entry in the Skill_Projectile document. You can add a new entry either by editing the empty row at the bottom or by clicking the [+] button at the top of the document.
  
After creating the necessary documents in our project, we copy the "LightningBolt" skill from the Shared project. Copying an existing skill makes creating new skills much easier.
+
The only two required fields are the "Name" which serves as a (unique) identifier for the skill, and the SkillType. The SkillType can simply be set to the name of the document (Projectile in our case).
 
 
To copy the LightningBolt skill, first open the Skill_Projectile document in the Shared project <span style="color:#FCFF27">(1)</span>. In the image, I docked the Shared Skill_Projectile document under the Skill_Projectile document in my own project. You can do this by clicking and dragging the tab.
 
 
 
Then, select the LightningBolt stats entry, copy it (Ctrl+C), select the empty row in your project's Skill_Projectile document, and paste (Ctrl+V) <span style="color:#FCFF27">(2)</span>.
 
 
 
<br />
 
[[File:Step4_CopyProjectileId.png|none]]
 
  
 
<br />
 
<br />
[[File:Step5_EditSkill.png|none]]
+
== See Also ==
 +
Although adding a row to the stats document is all we need to create a new skill, our skill is far from ready to be used.
  
<br />
+
To create a complete and useable skill from scratch would require a lot of work. The skill itself needs an icon, casting animations, effects, and a projectile. It is therefor recommended that you create a skill based on an existing skill.
=== Step 4: Creating a Skillbook ===
+
{| class="wikitable"
[[File:Step6_EditObject.png|none]]
+
|-
 
+
| [[Part 1: creating a new skill]]
<br />
+
|-
[[File:Step7_CopyTemplate1.png|none]]
+
| [[Part 2: creating a skill from existing]]
 
+
|-
<br />
+
| [[Part 3: creating and using a skillbook]]
[[File:Step7_CopyTemplate2.png|none]]
+
|-
 
+
| [[Part 4: adding the skillbook to a vendor]]
<br />
+
|-
[[File:Step8_CreateFolder.png|none]]
+
|}
 
 
<br />
 
[[File:Step9_MoveTemplate.png|none]]
 
 
 
<br />
 
[[File:Step10_AssignRootTemplate.png|none]]
 
 
 
<br />
 
[[File:Step11_SetOnUseAction.png|none]]
 
 
 
<br />
 
=== Step 5: Using our Skill ===
 
[[File:Step12_PlaceTemplate.png|none]]
 
 
 
<br />
 
[[File:Step13_UseSkill.png|none]]
 
  
 
<br />
 
<br />

Latest revision as of 11:09, 2 October 2017

This article is part of a 4-part series on how to create, edit and use a new skill.

Part 1: creating a new skill
Part 2: creating a skill from existing
Part 3: creating and using a skillbook
Part 4: adding the skillbook to a vendor

This article describes how to create a blank skill entry.


Introduction

Creating skills in your mod is easier than ever with our newly introduced tool, the Stats editor.


Creating a skill

Step 1: Opening the Stats Editor

Step1 OpenStatsEditor.png

The Stats Editor button


First, we need to open up the stats editor. To do this, locate the "Stats Editor" button on the menu bar (under "Editors").


Step3 CreateSkillDataStats.png

Creating the Skill_Projectile document


Next, we need to create the Skill_Projectile stats document in our project. If the document already exists, you can skip this step. To open the document, expand the "SkillData" item and double click the "Skill_Projectile" item.


Step 2: Adding a projectile skill entry

Step2 BlankProjectileSkillEntry.png

Creating a blank projectile skill entry


Finally, we create an entry in the Skill_Projectile document. You can add a new entry either by editing the empty row at the bottom or by clicking the [+] button at the top of the document.

The only two required fields are the "Name" which serves as a (unique) identifier for the skill, and the SkillType. The SkillType can simply be set to the name of the document (Projectile in our case).


See Also

Although adding a row to the stats document is all we need to create a new skill, our skill is far from ready to be used.

To create a complete and useable skill from scratch would require a lot of work. The skill itself needs an icon, casting animations, effects, and a projectile. It is therefor recommended that you create a skill based on an existing skill.

Part 1: creating a new skill
Part 2: creating a skill from existing
Part 3: creating and using a skillbook
Part 4: adding the skillbook to a vendor