mishazam

EP2e Roll20 Macros: Hacking Intrusion

May 11th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. /*
  2. * User Notes
  3. * ----------
  4. * The stacked macros "prepend code" resolves as a newline in the Roll20 macro window. If needed again, replace the !newline with !
  5. * #hack-initiate is the only macro intended to be visible & selectable by players. It contains several nested macros to roll dice,
  6. * prompt users for modifiers (prompting GM is outside of Roll20 default functionality), and prompt users for stare-and-compare roll
  7. * resolution.
  8. * The intended usage paradigm follows GM-visible rolls and Player/Target tokens. Modification will be required for alternate usage.
  9. * Firewall target are intended to be used as token, where only the Total Infosec score matters. Mote/Server/Host = 30/50/70 skill.
  10. * Intruder Subversion and Defender actions are outside the scope of this pastebin.
  11. * Image Example: https://imgur.com/HbQr2Lg
  12. */
  13.  
  14. // name: hack-initiate
  15. // brief: Attach to a character token as an ability macro. Serves as a wrapper for all further Intrusion macros.
  16. &{template:default} {{name= **@{selected|character_name}** is initiating a hack!}} {{[Brute Force](!
  17. #hack-initiate-brute-force) [Subtle](!
  18. #hack-initiate-subtle)}}
  19.  
  20. // name: hack-initiate-brute-force
  21. &{template:default} {{name= **@{selected|character_name}** initiated a brute force hack against **@{target|character_name}**}} {{Intruder Infosec Target= [[@{selected|total-infosec} - 30 - @{selected|malus} + ?{+30 if successful past hack + teamwork bonus}]]}} {{Roll= [[1d100]]}} {{Defender Infosec Target= [[@{target|total-infosec} - @{target|malus}]]}} {{Roll = [[1d100]]}} {{[Resolve Successful Hack](!
#hack-resolve-brute-force) [Resolve Failed Hack](!
#hack-resolve-failed) }}
  22.  
  23. // name: hack-initiate-subtle
  24. &{template:default} {{name= **@{selected|character_name}** initiated a subtle hack against **@{target|character_name}**}} {{Task Action Timeframe= [[1 + ?{Time Modifier?|0}]] hours}} {{Intruder Infosec Target= [[@{selected|total-infosec} - @{selected|malus} + ?{+30 if successful past hack + teamwork bonus}]]}} {{Roll= [[1d100]]}} {{Defender Infosec Target= [[@{target|total-infosec} - @{target|malus}]]}} {{Roll = [[1d100]]}} {{[Resolve Successful Hack](!
#hack-resolve-subtle) [Resolve Failed Hack](!
#hack-resolve-failed) }}
  25.  
  26. // name: hack-resolve-brute-force
  27. &{template:default} {{name= Intruder hacked the system!}} {{Privileges= User}} {{Visibility= Spotted}} {{Alert= Active}} {{Superior?= [Super](!
#hack-resolve-super) [Double Super](!
#hack-resolve-double-super) }} {{Crit?= [Crit](!
#hack-resolve-brute-force-crit)}}
  28.  
  29. // name: hack-resolve-brute-force-crit
  30. &{template:default} {{name= Intruder diminished their Visibility and reduced Alert!}} {{Visibility= Covert}} {{Alert= Passive}}
  31.  
  32. // name: hack-resolve-double-super
  33. &{template:default} {{name= Intruder upgraded their Privileges!}} {{Privileges= Admin}}
  34.  
  35. // name: hack-resolve-failed
  36. &{template:default} {{name= Intruder failed to breach the system!}} {{Alert= Passive}}
  37.  
  38. // name: hack-resolve-subtle
  39. &{template:default} {{name= Intruder hacked the system!}} {{Privileges= User}} {{Visibility= Covert}} {{Alert= None}} {{Superior?= [Super](!
#hack-resolve-super) [Double Super](!
#hack-resolve-double-super) }} {{Crit?= [Crit](!
#hack-resolve-subtle-crit)}}
  40.  
  41. // name: hack-resolve-subtle-crit
  42. &{template:default} {{name= Intruder diminished their Visibility!}} {{Visibility= Hidden}}
  43.  
  44. // name: hack-resolve-super
  45. &{template:default} {{name= Intruder raised their Privileges!}} {{Privileges= Security}}
Add Comment
Please, Sign In to add comment