Creating a Mirror Image Script Card

  Рет қаралды 936

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.startplaying.games/gm/nic...
📗My Books: us.amazon.com/stores/Nicholas...
Get 5% off VoiceMod voicechanger (link.xsolla.com/vhF53pwM) with code NICKOLIVO5
The multitokenFX code can be found here- gist.github.com/nolivo/27a374...
!{{
!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 8 ай бұрын
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 8 ай бұрын
So cool
@rudimae2702
@rudimae2702 8 ай бұрын
Hey, I recognize that token. :)
@robkoekkoek6014
@robkoekkoek6014 8 ай бұрын
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 8 ай бұрын
Hi Rob! Yep, that should work. Let me know if you run into any trouble, and happy gaming!
@David_Gallaher
@David_Gallaher 8 ай бұрын
I use a variation of this for my games
@ColostomyMan
@ColostomyMan 8 ай бұрын
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 8 ай бұрын
Shoot, you're right. That could be simplified further - thanks for pointing that out!
@Prez1210
@Prez1210 8 ай бұрын
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 8 ай бұрын
Just to confirm, you have the metascript toolbox installed? Can you post the error you’re receiving?
@Prez1210
@Prez1210 8 ай бұрын
@@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 8 ай бұрын
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 8 ай бұрын
@@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 7 ай бұрын
@@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.
Using Page Folders and the Party Toolbox in Roll20
6:18
Nick Olivo
Рет қаралды 1,9 М.
Muler Mod Overview
17:50
Nick Olivo
Рет қаралды 1,4 М.
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 71 МЛН
Creating a Chaos Bolt Macro with ScriptCards
14:11
Nick Olivo
Рет қаралды 613
Automating 5e's Aid Spell with the ScriptCards Mod
16:10
Nick Olivo
Рет қаралды 582
Automating 5e's Beastheart class in Roll20 using ScriptCards
19:23
How to modify how a Roll20 character sheet looks
7:07
GM Mike
Рет қаралды 3,1 М.
Overview of the Select Manager Mod for Roll20
13:23
Nick Olivo
Рет қаралды 1,3 М.
RAG from the Ground Up with Python and Ollama
15:32
Decoder
Рет қаралды 25 М.
Creating ScriptCard Libraries in Roll20
19:48
Nick Olivo
Рет қаралды 612
Top Mods for Roll20 with Nick Olivo
5:56
Roll20
Рет қаралды 8 М.
MapTool Tutorial - 07. Setting up a Map from a PDF or Image File
18:44
Lp. Последняя Реальность #100 КОНЕЦ ГОДА [Новогоднее Чудо] • Майнкрафт
51:05
МЕГАЯЩИКИ ВЕРНУЛИСЬ В BRAWL STARS
20:36
Поззи
Рет қаралды 498 М.