![]() |
Added: support for some human/elf racial traits - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Added: support for some human/elf racial traits (/Thread-Added-support-for-some-human-elf-racial-traits) |
Added: support for some human/elf racial traits - Rizz - 05-06-2015 10:01 AM Added: support for some human/elf racial traits (only used if FeatureML is enabled on sphere.ini) Now elfs have +20mana, i would like to remove this features keeping FeatureML enabled, how can i? RE: Added: support for some human/elf racial traits - XuN - 05-06-2015 04:23 PM [Function f_onchar_create] if (<argn3>==2) MaxMana -=20 endif RE: Added: support for some human/elf racial traits - Rizz - 05-06-2015 06:59 PM But in this way if I buff myself (s_bless or other spells), INT will raise but MANA will not follow the INT value. RE: Added: support for some human/elf racial traits - XuN - 05-06-2015 07:53 PM Then remove the '-=20'. When reseted to NULL, all stats follow 'default' rules. EDIT: Anyway there is a workaround if you want to keep this change, or made some other similars: Any stat changes will fire @Statchange so you can 'catch' the gains and losses from str,dex and int and 'transfer' them to their respective secondary stats: Code: ON=@StatChange RE: Added: support for some human/elf racial traits - Rizz - 05-07-2015 09:06 PM Thx for the code , I will try to use it. Anyway I think FEATURE_ML_racetraits should be something to add in the sphere.ini to choose if enable this features or not. Otherwise everyone that are using now race needs to use code to stop cancel this feature (you cannot set maxmana to 0 to remove the effect, you have to set at -20...). RE: Added: support for some human/elf racial traits - XuN - 05-07-2015 10:26 PM I've checked it in the source and this is working if FeatureML has 01 value in the ini (so the code I posted here won't make this change), just disable this feature in the ini and you are done ![]() RE: Added: support for some human/elf racial traits - Rizz - 05-07-2015 10:51 PM (05-07-2015 10:26 PM)XuN Wrote: I've checked it in the source and this is working if FeatureML has 01 value in the ini (so the code I posted here won't make this change), just disable this feature in the ini and you are done Mmm but if I disable that option will I disable something else? RE: Added: support for some human/elf racial traits - darksun84 - 05-07-2015 10:59 PM The elf character creation ![]() RE: Added: support for some human/elf racial traits - Rizz - 05-08-2015 07:33 PM I would like to keep that elf creation bcuz I use. Even: Added weight tooltip on all movable items if FEATURE_ML_UPDATE feature is enabled on sphere.ini (although it's not a ML feature, OSI started using this tooltip only on ML) I think would be better have an option in the .ini for this: 22-11-2014, Coruja - Added: Wisdom racial trait on elves (they always have +20 max mana). It works only if FEATURE_ML_UPDATE is enabled on sphere.ini Otherwise everyone that uses ML features needs to deal with this troublesome feature: how can I deal with an automatic +20 mana? I have to set a -20 mana, use a code to update correctly the maxmana with the INT value, use another code to check everytime I clean the MAX* value to add again a -20 mana, use another code to check if the -20mana is present and correctly added. Is not simple to manage. Who request this feature lol? |