Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

[dd3.5] Macro for spells

Hi! I've a little problem for dd3.5... I start using spell maccros but I don't know how use the magic resistance(how to name it,  @{target|token_magic_resistance}   doesn't work) If just one of you could help me saying how to get this value, it would... make nothing but please, be cool!
1457037051

Edited 1457037547
Diana P
Pro
Sheet Author
@{target|spellresistance} would give you the spell resistance box from the D&D3.5 character sheet (the one labeled Spell Resist under the saving throws area).  Mousing over the box will give you the name of that particular box on the 3.5 sheet. But: I believe you can only access those values on a token/character that you have control over (ie GM will be able to access everything, but regular players cannot access those values which exist on character sheets that they cannot access/view/have control over). Actually, testing this showed it worked.  Hmmm... Now I wonder why that macro I was working on didn't... back to the drawing board. :)
1457037343

Edited 1457037402
Diana P said: But: I believe you can only access those values on a token/character that you have control over (ie GM will be able to access everything, but regular players cannot access those values which exist on character sheets that they cannot access/view/have control over). Players can access any Attribute of any Character, regardless of permissions, using an Attribute call that has the target keyword on a Token which represents that Character.
1457037586
Diana P
Pro
Sheet Author
Silvyre said: Players can access any Attribute of any Character, regardless of permissions, using an Attribute call that has the target keyword on a Token which represents that Character. Thanks!  I see that now.  :)
1457039202

Edited 1457042438
Thanks a lot! I'd like to make a full french maccro library and then offer it to roll20, that helps a lot :D That was hard but there is the first version of the ray of frost french version (rayon de givre) &{template:DnD35StdRoll} {{spellflag=true}} {{name=@{character_name} lance rayon de givre sur @{target|token_name}}}{{Ecole:=Evocation}}{{Niveau:=Ensorceleur 0}}{{Temps d'incantation:=1 action simple}}{{Portée:=courte ([[7.5+0.75*@{casterlevel}]]m)}}{{Effet:=Rayon}}{{Durée:=Instantanée}}{{Jet de sauvegarde:=Aucun}}{{Résistance à la magie:=oui}}{{notes=Un rayon de givre jaillit du doigt tendu du mage, qui doit réussir une attaque de contact à distance pour atteindre sa cible. Le rayon inflige 1d3 de dégats de froid}}{{compcheck=Toucher:[[{1d20+[[@{level}]]}>?{faire entrer|@{target|spellresistance} }]] }}{{succeedcheck=Bien joué! Tu touches!}} {{failcheck=Echec :( }}
1458415495

Edited 1458415570
Hum... Sorry for reopening the session but can we also change directly tokens hitpoints with this kind of maccro? Because show how much you hit is great, directly hit is better! I did this {@{target|hitpoints}=[[@{target|hitpoints}+[[max @{cha-mod}*@{casterlevel}|0]] ]]} But not working... Maybe it could help as model?
1458416942
Diana P
Pro
Sheet Author
Macros cannot change values on the character sheet or on the tokens.  You need to use the API (TokenMod perhaps) to do something like that.  API requires a Pro level subscription.
ok thanks for the answer
1458475239
Gen Kitty
Forum Champion
As the questions have been answered, I'll go ahead and close this up.  Don't hesitate to start a new thread if you've a new question or concern.  Happy gaming!