Lone Wolf Development Forums How to calculate half class level
 Register FAQ Members List Search Today's Posts Mark Forums Read

 Notices Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528. If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com. - The Lone Wolf Development Team

Senior Member

Join Date: Jul 2019
Posts: 104

July 12th, 2020, 06:38 PM
I'm trying to create a sorcerer bloodline that basically does the following:

+1 per 2 sorcerer levels to saves
+1 per 2 sorcerer levels deflection bonus to AC
Swift action
Duration 1 round

I see the options for making it last 1 round, and for making it a swift action to activate.

But I can't figure out how to assign a bonus to saves and AC = to half the class level.
#1
Senior Member

Join Date: May 2015
Posts: 802

July 13th, 2020, 03:57 PM
round(hero.tagcount[Classes.Sorcerer]/2,0,1)
#2
Senior Member

Join Date: Jul 2019
Posts: 104

July 14th, 2020, 11:11 AM
Thank you.
#3
Senior Member

Join Date: Jul 2019
Posts: 104

September 29th, 2020, 08:23 PM
So, do you think something like this would work for adding the bonuses to saves?

Use this to determine half the sorcerer's level.

field[abValue].value += round(hero.tagcount[Classes.Sorcerer]/2,0,1)

Use this, then, to apply a bonus equal to half sorcerer's level to their saves:

hero.child[svFort].field[BonLuck].value = field[abValue].value +

hero.child[svRef].field[BonLuck].value = field[abValue].value +

hero.child[svWill].field[BonLuck].value = field[abValue].value +

And then this to apply half the sorcerer's level as an enhancement bonus to their AC?

#applybonus[tACMisc, hero.child[ArmorClass], field[abValue].value]
#4
Senior Member

Join Date: Jul 2019
Posts: 104

September 29th, 2020, 08:48 PM
Hmm....when trying to set the save bonus, I'm getting an error.

"->Error in right-side expression of assignment"

This was the script I created.

hero.child[svFort].field[BonLuck].value = field[abValue].value +
#5
Senior Member

Join Date: May 2015
Posts: 802

September 30th, 2020, 02:39 AM
I'd use something like:
Code:
```#applybonus[BonLuck, hero.child[vFort], field[abValue].value]
#applybonus[BonLuck, hero.child[vRef], field[abValue].value]
#applybonus[BonLuck, hero.child[vWill], field[abValue].value]

#applybonus[tACMisc, hero.child[ArmorClass], field[abValue].value]```
#6
Senior Member

Join Date: Jul 2019
Posts: 104

October 1st, 2020, 10:32 PM
moved to separate topic

Last edited by Aril; October 1st, 2020 at 10:34 PM. Reason: Posted in wrong spot
#7
Senior Member

Join Date: Jul 2014
Posts: 412

October 10th, 2020, 06:00 AM
Just an FYI the reason for the error was you left a + sign with nothing to add thus the function got confused. In those lines of script just use this example: hero.child[svWill].field[BonLuck].value += field[abValue].value
Keep in mind that the += means it will add to the left side field, where as = means it will override left side field with what is in the right side field.

Forum link for my content work:
Forum link for SU 5e content work:
This link is for my group, but feel free to play it with:
This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race.

Last edited by DeltaMasterMind; October 10th, 2020 at 06:00 AM. Reason: Typo
#8

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Lone Wolf Development Web Site Announcements Realm Works Forums     Realm Works Discussion         Realm Works in Action         Realm Works Feature Requests     Realm Works in Action     Realm Works Feature Requests Hero Lab Online Forums     Hero Lab Online Discussion     HLO - Pathfinder 1st Edition     HLO - Pathfinder 2nd Edition     HLO - Starfinder     HLO - Shadowrun Hero Lab Forums     HL - Pathfinder Roleplaying Game     HL - D&D 5th Edition SRD     HL - Shadowrun     HL - Mutants & Masterminds     HL - d20 System     HL - World of Darkness     HL - Call of Cthulhu     HL - 4th Edition     HL - Savage Worlds     HL - Cortex System     HL - Authoring Kit     HL - User Projects     HL - Alternity (user-created)     Hero Lab Discussion Army Builder Forums     Army Builder Army Builder Data Files     Babylon 5: A Call to Arms     Battlefleet Gothic     Blood Bowl     Black Powder, Bolt Action, Hail Caesar, Judge Dredd, and Pike & Shotte     Confrontation - English     Kings of War (2nd Edition)     Lord of the Rings (Tabletop)     Mordheim     Necromunda     Starship Troopers     Star Wars: X-Wing and Armada Miniatures Game     The 9th Age     Warhammer Ancient Battles     Warhammer 40,000     Warhammer Fantasy 8th Ed.     Warhammer Historical: The Great War     Warhammer Fantasy 3rd Ed.     Warlord     Warmachine & Hordes     Warmaster Card Vault Forums     Card Vault Card Vault Data Files     MLB Showdown     Lord of the Rings CCG     .hack//ENEMY     Vs. System     Yu-Gi-Oh!     D&D Miniatures

All times are GMT -8. The time now is 09:17 AM.

 -- Default Style -- Majestic Contact Us - Lone Wolf Development Forums - Archive - Top