PDA

View Full Version : Problem with namespace variables


Turgid Bolk
09-16-2007, 03:19 PM
I'm making a custom character sheet for use by my group, and want to make a macro that automatically rolls for their attributes. First I tried making it find their Body score:

Body: [Q1d20.vs([!@Body@!])]

Which works exactly how it should. But when I try to make it specific to a character sheet, (like the one called Oddom, here):

Body: [Q1d20.vs([!@Oddom::Body@!])]

It spits out Body: 1d20.vs([Oddom::Body)] instead of rolling against his Body score. I tried to follow the documentation page (http://openrpg.wrathof.com/faq/Complex_Dice_Rolling), but it didn't work even after copying the syntax right from that page. Any help would be greatly appreciated!

tdb30_
09-16-2007, 06:59 PM
Could you attach a copy so we can take a look at it?

Have you tried changing Oddom to the name of the node directly above Body?

Turgid Bolk
09-16-2007, 09:02 PM
Okay, after further experimentation I got it to work. The problem was the name of the node had parenthesis, which threw it off. The node was actually Oddom (Playername), which I didn't mention since I didn't think it was important. I also had to take out the brackets around the variable...

So Body: [Q1d20.vs(!@Oddom::Body@!)] does work.

As an aside, switching it to the name of the node directly above Body doesn't work. Body: [Q1d20.vs(!@Charsheet::Body@!)] gives Body: 1d20.vs(Charsheet::Body). It's not important to me, but I wonder why that is.

I'll be over here smacking myself in the forehead. Thanks anyway.

tdb30_
09-16-2007, 09:30 PM
I'm just glad you got it to work. I believe I saw you post over at openrpg.com too. If you did, you might want to follow up there as well so anyone having the same problem can find the solution.

skolapper
09-03-2009, 01:31 PM
After I made a preview in layout and I save the files as xxx.AVI but when I tried to open the file, it cant work. Do anyone know how to fix this? Please ASAP. Thanks.

tdb30_
09-03-2009, 09:51 PM
Try saving them as .jpg