#Minor little output oddity

1 messages · Page 1 of 1 (latest)

errant copper
#

I've done a small macro for my upcoming Eclipse Phase game for pool recharge rolls, and its working but there's a minor oddity about the output I can't figure out why its doing. First the macro (its not big):

[h: BaseRecharge = 1D6] [input ("RechargeBonus")] [h: RechargeTotal = BaseRecharge + RechargeBonus] [h:MacroName = getMacroName()] [Macroname] is Die Roll [BaseRecharge] + Bonus [RechargeBonus] = [RechargeTotal]

It works fine, but when I run it I'm getting a "1" before the output for no obvious reason (there's no 1 before the Macro name). For example:

GM: 1 Recharge is Die Roll 3 + Bonus 0 = 3

Anyone able to enlighten me where the 1 is coming from?

sick root
#

[input (x)] will return 1 if you input something and 0 if you hit cancel

#

Usually what I do is like [h:status = input (whatever)] [abort(status)]

#

That will cause the macro to just not execute if the user hits cancel

#

And the h: makes sure the 1 doesn't print to chat if the value is supplied

errant copper
#

Thanks. I'll just do the latter.