alphafr Posted June 30, 2024 Posted June 30, 2024 (edited) Attempting a small edit granting argonians a swim speed boost, but I only manage to give a general speed boost instead Problem : swimming in target condition only mean I can't add it until I am swimming as an argonian and its bonus affect normal move speed too rather than having its effect apply only when I swim Dispel effects with keywords doesn't contain anything related to player state I can use Edited June 30, 2024 by alphafr
Sphered Posted July 2, 2024 Posted July 2, 2024 Since it's just for you, try just adding those conditions to the spell instead, and change subject to player. Not sure why you have race check twice there, but it shouldnt keep it from working
alphafr Posted July 14, 2024 Author Posted July 14, 2024 (edited) Race check is double due to vampire being treated as a race on its own for each race, I still get either nothing as I can't add the spell (says its added but never show up in the menu) or a perma speed boost regardless of swimming state Edited July 14, 2024 by alphafr
Tortilladog Posted August 16, 2024 Posted August 16, 2024 You could try altering the Game Setting "fMoveSwimMult" when playing as an argonian instead, as that only applies while swimming by default. Page for the function that alters Game Settings here. Full list of Game Settings here.
alphafr Posted August 16, 2024 Author Posted August 16, 2024 Scripting is really not my strong suit but thanks for the info
PeterMartyr Posted August 16, 2024 Posted August 16, 2024 On 6/30/2024 at 11:58 PM, alphafr said: Attempting a small edit granting argonians a swim speed boost, but I only manage to give a general speed boost instead look at your condition logic? if is swimming equal none is true, and (you are of this RACE, or this Vampire RACE) get a speed boost, has long has your not swimming, you get a general speed boost, does that explain why that happened ? do this and try again if Is Swimming equals the Player is true and the leave the two races alone 1
Qvorvm Posted August 16, 2024 Posted August 16, 2024 The "Subject.isSwimming" condition looks right. There is however the issue of when the condition is tested. In some cases, a condition on the magiceffect (such as you showed) is tested only once when the magiceffect is 1st applied (the usual case), and tested contiuously in other cases (concentration spells). I believe this will fall in the former case. You likely want to put the isSwimming condition spell-side instead so that it will be tested once a second.
Recommended Posts