No video

Creating a Mirror Image Script Card

  Рет қаралды 956

Nick Olivo

Nick Olivo

Күн бұрын

This video shows how to automate the Mirror Image spell from D&D 5e. It will automatically spawn 3 mirror images of the caster, deduct a spell slot, and then automatically make rolls to determine if an attack hits an image instead of the caster.
💥My Patreon: / nickolivo
🎲My Upcoming Games: www.startplayi...
📗My Books: us.amazon.com/...
Get 5% off VoiceMod voicechanger (link.xsolla.co...) with code NICKOLIVO5
The multitokenFX code can be found here- gist.github.co...
!{{
!Spawn --name|Mirror Image --qty|3 --placement|surround
(^)!modattr --sel --lvl2_slots_expended|-1 --silent
(^)!multiTokenFx burst magic {^&select Mirror Image*}{^&delay .2}
}}
!script {{
--#title|Mirror Image
--~dummy|array;selectedtokens;myarray {&select Mirror Image*}
--~count|array;getcount;myarray
--=DieRoll|1d20
--=ImageAC|10+@(Syel Lanuit|dexterity_mod)
--#leftsub|[&count] mirror image(s)
--#rightsub|Image AC [$ImageAC]
--c[&count]|3:=Target;6|2:=Target;8|1:=Target;11
--+Roll|You rolled [$DieRoll] vs a target of [$Target]!
--?[$DieRoll] -ge [$Target] | [
--+Target|The attack targets a mirror image!
--]|[
--+Target|The attack targets you!
--]|
}}

Пікірлер: 25
@APL314159265
@APL314159265 9 ай бұрын
Another great video, somehow when you explain this stuff it makes sense, it's a shame you were not around when I took statistics in college...😁
@David_Gallaher
@David_Gallaher 9 ай бұрын
So cool
@rudimae2702
@rudimae2702 9 ай бұрын
Hey, I recognize that token. :)
@robkoekkoek6014
@robkoekkoek6014 9 ай бұрын
Hey Nick! This is another winner! I noticed that you are hard typing the character's name in the "--=ImageAC|10+@(Syel Lanuit|dexterity_mod)" line rather than using a @selected or some such and that got me thinking. I have a wizard and a bard in my campaign. If they both cast mirror image, I would have to keep them separate. Can I do that by changing the name of the mirror token to eg. MirrorImageW and MirrorImageB so that only the wizard's images are counted when the wizard is attacked and likewise the bard's images when the bard is attacked?
@NickOlivo
@NickOlivo 9 ай бұрын
Hi Rob! Yep, that should work. Let me know if you run into any trouble, and happy gaming!
@ColostomyMan
@ColostomyMan 9 ай бұрын
Hey Nick. Thanks for your videos. I've been meaning to do something for Mirror Image for a bit now. May I ask you a question? Why the second array? Shouldn't the string variable from the selectedtokens also contain the count?
@NickOlivo
@NickOlivo 9 ай бұрын
Shoot, you're right. That could be simplified further - thanks for pointing that out!
@Prez1210
@Prez1210 9 ай бұрын
Any idea why it isn't working in my game? It's the delay that's causing issues. If I type the line to spawn the mirror images and let them spawn and then type the code for the magical burst it works. I cannot get the delay to take. Any variation of the code that I try using the delay code you've highlighted...nothing happens. 50% of the time it crashes the API and I have to restart it. I'm going to implement w/o the burst but I hate it when I think I understand something and I can't get it to work.
@NickOlivo
@NickOlivo 9 ай бұрын
Just to confirm, you have the metascript toolbox installed? Can you post the error you’re receiving?
@Prez1210
@Prez1210 9 ай бұрын
@@NickOlivo No error message. Nothing happens. Here's my code from NotePad++ !{{ !Spawn --name|Mirror Image --qty|[[1D4 + 1]] --placement|surround (^)!multiTokenFx burst magic {^&select Mirror Image*}{^&delay .5} }} &{template:default} {{Cavell casts Mirror Image}} I increased the delay a bit to see if my new computer needed a longer delay than .2 seconds. I do have the metascript toolbox installed (see picture): apparently I can't attach a .jpg to the comment section Since I can't post it, let me list the mods that were added when I added metascript: MathOps, Plugger, libTable, Muler, Messenger, Fetch, APILogic, ZeroFrame, and libInline
@Prez1210
@Prez1210 9 ай бұрын
I want to be clear, if I run the !Spawn command manually it works and if I later run the !multiTokenFx it works but not in the delay block.
@NickOlivo
@NickOlivo 9 ай бұрын
@@Prez1210 Got it. The code block and delay command come from the meta script toolbox, so I just want to make sure that’s installed.
@Prez1210
@Prez1210 9 ай бұрын
@@NickOlivo It's really driving me crazy. I don't think I have a syntax error but I can't understand why it won't work.
@David_Gallaher
@David_Gallaher 9 ай бұрын
I use a variation of this for my games
Using Page Folders and the Party Toolbox in Roll20
6:18
Nick Olivo
Рет қаралды 2,1 М.
Automating 5e's Aid Spell with the ScriptCards Mod
16:10
Nick Olivo
Рет қаралды 602
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 34 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 8 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 53 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 12 МЛН
Automating 5e's Beastheart class in Roll20 using ScriptCards
19:23
Toggling Light Sources On & Off In Roll20
11:07
Nick Olivo
Рет қаралды 969
The Greatest Dungeon Master Tool in the World - D&D 5e
34:46
Taking20
Рет қаралды 106 М.
Making a Landing Page for Foundry VTT
12:37
Occam's Eye
Рет қаралды 82 М.
Roll20 101: Setting Up Dynamic Lighting
18:13
Nick Olivo
Рет қаралды 3,5 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
Automating Eldritch Blast in Roll20
15:19
Nick Olivo
Рет қаралды 1,2 М.
Roll20 D&D 2024 Beta Character Sheet Overview
12:51
Nick Olivo
Рет қаралды 1,4 М.
Creating a Voracious Void in Roll20
17:05
Nick Olivo
Рет қаралды 652
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 34 МЛН