Search found 20 matches

by Idward
Wed Jul 03, 2013 10:25 pm
Forum: Macros
Topic: Looking to call data from outside of a switch
Replies: 5
Views: 369

Re: Looking to call data from outside of a switch

I got the code to work thanks! [h: energy=1d6] [h: energyType= "none"] [h: chatOutput= "nothing"] [h: success=1d2] [h: event=1d20] [h, switch(energy): case 1: energyType= "acid"; case 2: energyType= "cold"; case 3: energyType= "fire"; case 4: energyT...
by Idward
Wed Jul 03, 2013 4:18 pm
Forum: Macros
Topic: Looking to call data from outside of a switch
Replies: 5
Views: 369

Re: Looking to call data from outside of a switch

The code case 4: "Any spell that deals energy damage instead deals "+[energyType]+" damage."; won't work. What I am looking for the code to do is output: Your spell goes Wild! Any spell that deals energy damage instead deals fire damage. Instead of what it is outputting: Your spe...
by Idward
Wed Jul 03, 2013 3:07 pm
Forum: Macros
Topic: Looking to call data from outside of a switch
Replies: 5
Views: 369

Looking to call data from outside of a switch

Is there a way to call text from outside of a switch inside of the switch? For example in the test snipit: [h: energy=1d6] [h: energyType="none"] [h, switch(energy): case 1: energyType="acid"; case 2: energyType="cold"; case 3: energyType="fire"; case 4: energ...
by Idward
Mon Dec 10, 2012 12:18 am
Forum: Macros
Topic: Number always resulting in 0 inside an if statment
Replies: 7
Views: 1630

Re: Number always resulting in 0 inside an if statment

Great so I found if I started using an alternative count down it works correctly, however now I am trying to build something a little more complicated. For this I am trying to add in an ability that can either be a standard of a swift action, and cannot give a bonus greater then 25 if swift (11 poin...
by Idward
Sat Dec 08, 2012 8:34 pm
Forum: Macros
Topic: Number always resulting in 0 inside an if statment
Replies: 7
Views: 1630

Number always resulting in 0 inside an if statment

I am trying to build a few macros for a pathfinder pysonics class. In this case I am using an unused field "Melee_Damage_Bonus" as storage so if I have to pass off my character for what ever reason they have everything they need to play my character. Here is what is my code, what I want is...

Go to advanced search