Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

What tables you have placed into your API?

1385257231
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
I was flipping through old issues of Dragon magazine and found a picket pocket table I always wanted to use... but its too unwieldy.. it was in Dragon #104: 1) Roll on the "Pickpockets Table I: Potential Victims" (one for day and one for night.) 2) If the victim is a player class roll on the "Table IA: Special items" table. 3) Then roll on the "Pickpockets Table II: General Content" table. 4) Based on that.... roll on the 100 items long "Pickpockets Table III: Odds & End" table. oh yea... make sure the player playing the thief rolls for "Pick Pockets" before you start all that. Way too much a pain without API... but the thieves get off easy without something like this.. so I took the time an coded it. I am pleased with the output... I get everything all crunched in a updated hand out anytime I want a new result. So... What tables you have placed into your API? If any? (If you want the code send me a PM.... there is nothing novel about the code and its AD&D 2E centric.)
I would love to see the code on this!
1385262020
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Sent it..... still cleaning it up and shortening it a bit... but you get the idea.... the valuable stuff is in the arrays (that is where the work is... building the tables.)
This is great!!
I have entered the "hit location" chart from Hero. The system I'm using does not use hit location, but I have added it into the attack macros just for a bit of flavor.
1385466437
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Working on a crit/fumble table...mechanics for fumbles complete... its based off of this line of thinking. LINK Category.. family ... code... random outcome.. Categories are: MeleeArmed MeleeUnarmed RangedWeapon RangedThrown StealthArmed StealthUnarmed MeleeArmedFriendlyFirePossible MeleeUnarmedFriendlyFirePossible RangedWeaponFriendlyFirePossible RangedThrownFriendlyFirePossible Families are: Lost Footing Drop Weapon Self Injury Entangle With Foe Twist Muscle Scenery Disadvantage Wardrobe Malfunction Weapon Break Lost Weapon To Foe Friendly Fire Detected By Foe Code (used to select list of random outcomes): Lost Footing (Melee) Lost Footing (Ranged) Lost Footing (Stealth) Drop Weapon (Melee) Drop Weapon (Ranged) Drop Weapon (Stealth) Self Injury (Melee) Entangle With Foe (Armed) Entangle With Foe (Unarmed) Twist Muscle (Melee) Twist Muscle (Ranged) Twist Muscle (Stealth) Scenery Disadvantage (Melee) Scenery Disadvantage (Ranged) Scenery Disadvantage (Stealth) Wardrobe Malfunction (Melee) Wardrobe Malfunction (Ranged) Wardrobe Malfunction (Stealth) Lost Weapon To Foe (Thrown) Friendly Fire (Melee) Friendly Fire (Ranged) Detected By Foe (Stealth) Weapon Break (Melee) Weapon Break (Ranged) And with one "click" of a macro... this handout gets updated: Now its just the task of writing the outcomes: Lost Footing (Melee) (No Friendly fire) Fumbler’s movements put them off balance. They take a -1 penalty to their armor class for the next round. Fumbler’s movements put them severely off balance. They lose Dexterity and Shield bonuses to AC for the next round. If losing these bonuses does not reduce the fumbler’s AC by -2 (or more), then they still must take a -2 penalty. Fumbler trips, and falls prone. They lose Dexterity and Shield bonuses to AC for the current round and the next round. If losing these bonuses does not reduce the fumbler’s AC by -3 (or more), then they still must take a -3 penalty. Act last next round. Fumbler trips, falls prone, and strikes their head. Stunned for 1d4 rounds. (If fumbler is wearing a helmet, then they are not stunned, but their helmet is knocked off). Fumbler’s opponent takes advantage of the poor footwork and moves behind the fumbler. The opponent gains an additional attack of opportunity, this attack and any remain attacks the opponent has are at normal rear attack bonuses. If the opponent is a thief, backstab would apply to all attacks. Fumbler’s attack is wide leaving fumble open and off-guard. This provokes an attack of opportunity from all creatures that threaten the fumbler. Lost Footing (Ranged) Fumbler is so fixated on positioning to take the shot, that the fumbler loses footing and slips and falls.They lose Dexterity and Shield bonuses to AC for the next round. If losing these bonuses does not reduce the fumbler’s AC by -2 (or more), then they still must take a -2 penalty. Fumbler is so fixated on positioning to take the shot, that the fumbler loses footing. Make a DEX check or fall prone. Failing the fumbler provokes an attack of opportunity from all enemies who threaten fumbler. Fumbler is so fixated on positioning to take the shot, that the fumbler loses footing. Fumbler trips, falls prone, and strikes their head. Stunned for 1d4 rounds. (If fumbler is wearing a helmet, then they are not stunned, but their helmet is knocked off). Lost Footing (Stealth) Fumbler is so fixated on positioning to take a stealth attack, that the fumbler loses footing and slips into the victim. Completely breaking all stealth and the victim gains an additional attack of opportunity. Fumbler is so fixated on positioning to take a stealth attack, that the fumbler loses footing. Fumbler trips, falls prone, and strikes their head. Stunned for 1d4 rounds. This completely breaks all stealth and the victim gains an additional attack of opportunity. Fumbler is so fixated on positioning to take a stealth attack, that the fumbler loses footing. Make a DEX check or fall prone. Failing the fumbler provokes an attack of opportunity from all enemies who threaten fumbler. This completely breaks all stealth. Drop Weapon (Melee) etc... Drop Weapon (Ranged) etc... Drop Weapon (Stealth) etc..
1385489458
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Fumble script is pretty much complete.... now just the critical hits.
Awesome man, you know one guy that wants it!! Just was looking at best of Dragon V in fact.
1385496575
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Sent it to you...
Oh man, Stephen, could I get a piece of that? I've never been a fan of fumbles and whatnot, but some of my newer players are and maybe this will make me a convert :D
All tables as cool as you think they are! Very nice work!
1385550004
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
How ever you process API messages just add a command for calling roll20API.processAPIcritical() it refreshes the handouts (you wil have to add or change "var roll20API = roll20API || {};") roll20API.processAPIcritical() <a href="https://gist.github.com/BaldarSilveraxe/7673795" rel="nofollow">https://gist.github.com/BaldarSilveraxe/7673795</a> Supporting tables <a href="https://gist.github.com/BaldarSilveraxe/7673900" rel="nofollow">https://gist.github.com/BaldarSilveraxe/7673900</a>
1385551105
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
I am going to work on making the critical hits more "thematic".... and adding other types. I took my time with the fumbles because I really hate the "Fell on your own sword and died" fumbles. Please forgive my bad grammar and spelling... was rushing to get it "in" the code. The one I am waiting to come up in play is a stealth attack fumble "Detected By Foe": "Any foe capable of detecting fumbler (magic or otherwise) does so on a hutch based on some clumsy action on fumbler’s part. Or fumbler is so fixated on positioning to take a stealth attack, that the fumbler loses footing and slips into the victim. Completely breaking all stealth and the victim gains an additional attack of opportunity."