Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *create showrand true
- *create critfail false
- *create luckmod 0
- *create nat20 false
- *create ultrafail false
- *create nocritfail false
- *create DeactivateRand false
- *create NonRandDC 0
- *create rollfail false
- *create rollresult 0
- *create rollsuccess false
- *create activatedice false
- *create activaterand10 true
- *create activaterand2 true
- *create activaterand20 true
- *create activaterand3 true
- *create activaterand4 true
- *create activaterand6 true
- *create activaterand8 true
- *create DCrange 0
- *create d10 0
- *create d2 0
- *create d20 0
- *create d3 0
- *create d4 0
- *create d6 0
- *create d8 0
- *create percentiledice 0
- The template to use the agility check script \/-\/
- *set DCrange (insert desired DC)
- *gosub_scene MISC agilitycheck
- *if critfail
- (result if critically fail)
- *if nat20
- (result if critically succeeded)
- *if rollfail
- (result if failed)
- *if rollsuccess
- (result if succeeded)
- The script for both randomized and non-randomized agility check \/-\/
- *label agilitycheck
- *gosub_scene MISC skillconversion
- *if DeactivateRand
- *gosub_scene MISC skillconversion100
- *gosub rollreset
- *if showrand
- (agility([b]${agilitymod}[/b])
- *if luckmod != 0
- + Luck([b]${luckmod}[/b])
- | DC = ${DCrange} or above)
- *set rollresult (agilitymod + luckmod)
- *if rollresult < DCrange
- *set critfail false
- *set nat20 false
- *set rollfail true
- *set rollsuccess false
- *goto return
- *if rollresult >= DCrange
- *set critfail false
- *set nat20 false
- *set rollfail false
- *set rollsuccess true
- *goto return
- *if activaterand20
- *if nocritfail = true
- *rand d20 2 20
- *if nocritfail = false
- *rand d20 1 20
- *if showrand
- (rolling D20 ([b]${d20}[/b]) + agility([b]${agilitymod}[/b])
- *if luckmod != 0
- + Luck([b]${luckmod}[/b])
- | DC = ${DCrange} or above)
- *set rollresult ((d20 + agilitymod) + luckmod)
- *gosub rollreset
- *if d20 = 1
- *set critfail true
- *set nat20 false
- *set rollsuccess false
- *set rollfail false
- *goto return
- *if d20 = 20
- *set critfail false
- *set nat20 true
- *set rollsuccess false
- *set rollfail false
- *goto return
- *if rollresult < DCrange
- *set critfail false
- *set nat20 false
- *set rollfail true
- *set rollsuccess false
- *goto return
- *if rollresult >= DCrange
- *set critfail false
- *set nat20 false
- *set rollfail false
- *set rollsuccess true
- *goto return
- *goto errordroppedfromline
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement