Mods / Customizable Rift Ward

Tags: #QoL #Technology #Tweak
Author: Ascyst
Side: Both
Created: Nov 14th 2023 at 9:04 AM
Last modified: Nov 14th 2023 at 9:06 AM
Downloads: 447
Follow Unfollow 4

Latest release (for Vintage Story 1.18.15, outdated):
CustomizableRiftWard.zip  1-click install


This mod was created just to see if I could.

Allows you to configure Rift Ward effective range, as well as the success chance for blocking rifts (by default, range is 30 units and there is a 95% chance to block.).


Config isn't live, requires a restart between changes.

You can find the config under: %AppData%\VintagestoryData\ModConfig\CustomizableRiftWard.json

riftBlockChance: requires value between 0 and 1 (e.g, 0.95 is the default 95% block chance)
maxRange: theoretically unlimited I guess? must be a whole number between 1 and 340 decillion, i think that's the float max.


I've got shakey experience with coding and this was an almost fully blind attempt to create something without tutorials. I was unable to properly test this to verify if the radius/success chance is actually increased, but the code works, doesn't throw harmony errors, and the ward still works ingame so I'm assuming it must work.

If you have any issues with this mod, please comment and I will look into it.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
0.0.1 customizableriftward 447 Nov 14th 2023 at 9:06 AM Empty CustomizableRiftWard.zip 1-click install

2 Comments (oldest first | newest first)

💬 Felnarn, Dec 9th 2023 at 6:29 PM

This looks neat, during creation did you notice any way to affect the duration value?

 

💬 OmegaHaxors, Nov 19th 2023 at 11:03 AM

Float does in fact have a value for INFINITY though i'm not sure it would work in this case as it's Not a Number.

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом