Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
skillsystem [2020/11/06 13:00] – [Skillsystem] adminskillsystem [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Skillsystem ====== 
- 
-Besides the InventorySystem a good game very often needs a skill- or value-management. Here comes TGorillaSkillSystem in place. 
-Imagine you're playing a character in a RPG or sports game you normally have many different skills you can evolve to get better or make progress. 
- 
-A SkillSystem manages groups which contains skills and supports multilingual content. 
- 
-<file pascal> 
-uses 
-  Gorilla.Utils.SkillSystem; 
-   
-[...] 
- 
-FSkillSystem : TGorillaSkillSystem; 
-FMySkills : TGorillaSkillGroup; 
-FSkills : Array[0..1] of TGorillaSkill; 
- 
-[...] 
- 
-// create a new empty skill system 
-FSkillSystem := TGorillaSkillSystem.Create(Self); 
-FSkillSystem.Language := 'en-us'; 
- 
-// add a group for managing general skills 
-FMySkills := FSkillSystem.AddGroup(); 
-FMySkill.Name := 'MySkills'; 
- 
-// add some skill to this group 
-FSkills[0] := AddSkill(); 
-FSkills[0].Name := 'Power'; 
-FSkills[0].Level := 1; 
-FSkills[0].MaxLevel := 10; 
- 
-FSkills[1] := AddSkill(); 
-FSkills[1].Name := 'Speed'; 
-FSkills[1].Level := 1; 
-FSkills[1].MaxLevel := 10; 
-</file> 
- 
-===== Skill ===== 
- 
-===== User Interface ===== 
- 
-We're very sorry but currently the is no user interface template available. So you have to display your skill by yourself. 
- 
-===== Load & Save ===== 
- 
-Skill settings can be written to xml-fileformat. 
-Sadly AssetsManager support is not given yet.