Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Order of triggered actions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="AbdulAlhazred" data-source="post: 5398465" data-attributes="member: 82106"><p>Dausuul, my point was that the interrupt 'stack' is just the call stack of the functions that are resolving each power. So when you get to an interrupt you just jump into its 'resolveAction()' entry point. Now, you will need a context within each resolver that keeps track of any reactions etc that need to be added to the end of that action. You COULD use a single stack for that probably, but it seems better self-contained to just have a list of 'things that need to be called when this action is done resolving'.</p><p></p><p>So A uses power X on B, C reacts to X with Y (Y added to X's 'stack'), B interrupts X with Z (control passes immediately to Z). </p><p></p><p>Thus X would have control, Y would be added to X's list/stack of reactions to execute, and then Z would be given control. When Z returns X finishes resolving which will involve executing Y before it returns control to whatever called it.</p><p></p><p>Maybe I didn't quite understand your design either. There could also be some other wrinkle I haven't thought of, but I think it covers the basic scenario OK.</p></blockquote><p></p>
[QUOTE="AbdulAlhazred, post: 5398465, member: 82106"] Dausuul, my point was that the interrupt 'stack' is just the call stack of the functions that are resolving each power. So when you get to an interrupt you just jump into its 'resolveAction()' entry point. Now, you will need a context within each resolver that keeps track of any reactions etc that need to be added to the end of that action. You COULD use a single stack for that probably, but it seems better self-contained to just have a list of 'things that need to be called when this action is done resolving'. So A uses power X on B, C reacts to X with Y (Y added to X's 'stack'), B interrupts X with Z (control passes immediately to Z). Thus X would have control, Y would be added to X's list/stack of reactions to execute, and then Z would be given control. When Z returns X finishes resolving which will involve executing Y before it returns control to whatever called it. Maybe I didn't quite understand your design either. There could also be some other wrinkle I haven't thought of, but I think it covers the basic scenario OK. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Order of triggered actions
Top