I'm playing a face table using Maptools and I've created macros for the data rollovers in a physical way in which the scrolling result is inserted into the system. it turns out that as long as the scrolling result is unsuccessful I wish that Macro did not follow through the command line.
Ataque: <b> [Ataque=if(THACO - CA> ModAtc + rolagem_de_ataque + AtacDist, "Errou!", "Acertou!" )] <b> <br>
Dano: <b> [if(Ataque=="Errou!", 0, adaga1d4 + AjDan)] <b>
In that case I would like it when the result of the attack was "Wrong!" not be requested to include "adaga1d4 + AjDan".
I think it's just including an additional command, but I already researched everything and did not find it, we here played AD & D 2ed.
Thanks!
How to break a command line when IF returns false
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Re: How to break a command line when IF returns false
Welcome!
What you are looking for is probably the if roll option combined with the code_(roll_option).
What you are looking for is probably the if roll option combined with the code_(roll_option).
Code: Select all
[h: Ataque = if(THACO - CA > ModAtc + rolagem_de_ataque + AtacDist, "Errou!", "Acertou!" )]
Ataque: <b>[r: Ataque]</b><br>
[r, if(Ataque=="Errou!"),code: {
[h: Dano = 0]
};{
Dano: <b>[r: Dano = adaga1d4 + AjDan)]</b></br>
}]
Re: How to break a command line when IF returns false
Thanks for helping, I've been trying to fix this for days, now it's going to be a lot easier to use the CODE command:
Re: How to break a command line when IF returns false
If you want to create a Portuguese translation file for MapTool, let us know.