Class Tutorial: Difference between revisions
From Gothongs Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 42: | Line 42: | ||
|Prevents the thong from appearing on thongsmiths. This is useful when using the web API if you want to give players the class through other means. | |Prevents the thong from appearing on thongsmiths. This is useful when using the web API if you want to give players the class through other means. | ||
|- | |- | ||
|[[ | |[[Passive Tutorial|Passives]] | ||
|List of Passive effects to apply when using the class. | |List of Passive effects to apply when using the class. | ||
|- | |- | ||
|[[ | |[[Spells Tutorial|Spells]] | ||
|Each column is a spec of the class. The UI may not render more than 2 specs at a time. Stick to max 2 specs for now. You can enter the name of your spec and then a list of spells that you want the spec to have. | |Each column is a spec of the class. The UI may not render more than 2 specs at a time. Stick to max 2 specs for now. You can enter the name of your spec and then a list of spells that you want the spec to have. | ||
|} | |} | ||
| Line 51: | Line 51: | ||
{{ModModifiedWarning}} | {{ModModifiedWarning}} | ||
== Paladin Example == | |||
Here is an example of the full paladin class. | |||
=== Class Setup === | |||
{| class="wikitable" | |||
|+ | |||
!Field | |||
!Value | |||
|- | |||
|Token | |||
|<secret> | |||
|- | |||
|Name | |||
|Paladin | |||
|- | |||
|Image | |||
|https://panda.place/games/pandamod/media/classes/paladin_class.png | |||
|- | |||
|Texture | |||
|e3ce4066-1443-beb5-bd78-7fa2e4f66372 | |||
|- | |||
|Global Cooldown | |||
|1.5 | |||
|- | |||
|Default Stance | |||
|<empty> | |||
|- | |||
|Default Weapon | |||
|Defender's Gear | |||
|- | |||
|Description | |||
|A holy knight who can protect or heal. Paladins do not passively regenerate mana, but gain mana when they take damage. | |||
|- | |||
|Public | |||
|Checked | |||
|- | |||
|Fists Only | |||
|Unchecked | |||
|- | |||
|No Thongsmiths | |||
|Unchecked | |||
|- | |||
|Passives | |||
|<pre> | |||
[ | |||
-3, | |||
"Pala_ATC", | |||
1, | |||
-1, | |||
-2, | |||
[ | |||
[ | |||
[ | |||
-1, | |||
"got Status", | |||
8, | |||
[], | |||
0 | |||
] | |||
], | |||
0, | |||
1, | |||
4, | |||
2, | |||
[ | |||
0, | |||
0, | |||
0, | |||
0, | |||
[ | |||
7.2, | |||
384, | |||
"palMP", | |||
[ | |||
[ | |||
20, | |||
"100b5dca-9b78-9c57-e621-6a5415ec051c", | |||
"Regenerating mana" | |||
], | |||
[ | |||
4, | |||
0.05, | |||
1 | |||
] | |||
], | |||
[], | |||
[], | |||
[], | |||
0, | |||
0, | |||
1 | |||
] | |||
] | |||
] | |||
] | |||
</pre> | |||
|- | |||
|Spells A | |||
|Aegis / Tank. <Selected spells> | |||
|- | |||
|Spells B | |||
|Holy / Heal. <Selected spells> | |||
|} | |||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
Latest revision as of 13:46, 2 August 2023
If you have not yet created a mod, please create one first.
A class is a collection of spells and passive that will be active when that class is activated.
Field Reference
| Field | Description |
|---|---|
| Token | DO NOT HAND THIS OUT. This is a unique ID for your class. If you use the web API you can give players this class via script instead of a thongsmith unlock. |
| Name | Name of your class |
| Image | URL to an icon for your class. You can find PSD templates here. |
| Texture | UUID of the image uploaded to SL. |
| Global Cooldown | Min time between using any spell. |
| Default stance | Allows you to override the default weapon stance. Useful for casters. Stances are stored in the inventory of the WEAPON prim below the HUD. |
| Default weapon | Lets you pick a weapon that the class starts with. If the player has not unlocked that weapon it will default to one of the starter weapons. |
| Description | Describe your class. |
| Public | Enables your class to be used. |
| Fists Only | Prevents drawing the weapon. |
| No Thongsmiths | Prevents the thong from appearing on thongsmiths. This is useful when using the web API if you want to give players the class through other means. |
| Passives | List of Passive effects to apply when using the class. |
| Spells | Each column is a spec of the class. The UI may not render more than 2 specs at a time. Stick to max 2 specs for now. You can enter the name of your spec and then a list of spells that you want the spec to have. |
Next you will probably want to create some spells to put in your spells field.
Reset your HUD by saying "debug #ROOT" to load updates from mods while testing. See distributing your mod for information on how release public mod updates.
Paladin Example
Here is an example of the full paladin class.
Class Setup
| Field | Value |
|---|---|
| Token | <secret> |
| Name | Paladin |
| Image | https://panda.place/games/pandamod/media/classes/paladin_class.png |
| Texture | e3ce4066-1443-beb5-bd78-7fa2e4f66372 |
| Global Cooldown | 1.5 |
| Default Stance | <empty> |
| Default Weapon | Defender's Gear |
| Description | A holy knight who can protect or heal. Paladins do not passively regenerate mana, but gain mana when they take damage. |
| Public | Checked |
| Fists Only | Unchecked |
| No Thongsmiths | Unchecked |
| Passives | [
-3,
"Pala_ATC",
1,
-1,
-2,
[
[
[
-1,
"got Status",
8,
[],
0
]
],
0,
1,
4,
2,
[
0,
0,
0,
0,
[
7.2,
384,
"palMP",
[
[
20,
"100b5dca-9b78-9c57-e621-6a5415ec051c",
"Regenerating mana"
],
[
4,
0.05,
1
]
],
[],
[],
[],
0,
0,
1
]
]
]
]
|
| Spells A | Aegis / Tank. <Selected spells> |
| Spells B | Holy / Heal. <Selected spells> |