Gothic II: Gold Classic

Gothic II: Gold Classic

Picklock spell
 此主题已被置顶,因此可能具有重要性
D36  [开发者] 9 月 8 日 上午 9:46
For developers
The following constants in your scripts will override the plugin's values:
const int SPL_Cost_Picklock = 5; //mana cost per combination const int Circle_Ru_Picklock = 1; //circle requirement for rune use const int Value_Ru_Picklock = 1000; //price of the rune const int Value_Sc_Picklock = 50; //price of the scroll const string NAME_SPL_Picklock = "Picklock"; const string NAME_ManaPerCombination = "Mana per combination"; const string PRINT_LockIsTooComplex = "This lock is too complex!";

To use the scroll and rune items in your mod (add to traders, insert into world, etc) - add the empty instances in your scripts (the plugin will make them functional in-game):
instance ItSc_Picklock(C_ITEM) { }; instance ItRu_Picklock(C_ITEM) { };

To calculate the cost of spell usage yourself - add the following function in your scripts:
func int C_GetPicklockSpellCost() { //return the int by your logic here };

To disable the scrolls from appearing in Ignaz' trade inventory - add the following function in your scripts:
func int DIA_Ignaz_PicklockScrolls_Condition() { return FALSE; };
最后由 D36 编辑于; 9 月 9 日 上午 7:00