OtherwiseJunk / ParanoiaPerfectEditionSystem-foundryvtt

Other
3 stars 3 forks source link

confusion about abilities @aliases #36

Closed dosuserx closed 7 months ago

dosuserx commented 9 months ago

I'm new to foundry macros but not macros generally. i didn't a bit reading thru the code looking for the ability names, the @str stuff so you can make macros. it says in the code that you can use @str and other stats for paranoia but can that but explained a bit more?

OtherwiseJunk commented 9 months ago

ha I think some of this is a leftover from when I copied the initial template; str is from the dnd template that they provide by default.

I'm not sure if the character stats are currently exposed in such a way that you can access them in macros, but it would be something like abilities.brains or in that vein if it does.

I can take a look into this later this evening and do some testing to see what is currently exposed, and if nothing is figure out the best approach for exposing these to macros so players can make their own rolling macros

OtherwiseJunk commented 9 months ago

It looks like you can do things like

/roll (@brains.value+@chutzpah.skills.bluff.value)d6 currently, but that access method is a little clunky.

I can look into how easy it would be to setup aliases for these so you can just refer to @brains or @bluff

OtherwiseJunk commented 9 months ago

Ok, I have a test build where all the stats/skills are now rollable with an @name (all lowercase)

image image

for skills that have a space in the name (Alpha Complex) the @ would become @alphacomplex.

For the stats I'm going to add @brn @chtz @mec and @vio aliases as well.

the skills seems dicier, the names are longer but it's not immediately clear to me if players would expect say @aplx, or @alpha, or @alp, etc.

Down the line I might change my mind on that if I can come up with a clever way of communicating it to players, but for now this should do a lot to simplify these macros hopefully.

OtherwiseJunk commented 9 months ago

https://github.com/OtherwiseJunk/ParanoiaPerfectEditionSystem-foundryvtt/releases/tag/v0.3.0

This should now be live on foundry, and I have all the added aliases listed in the release linked above. Let me know if this helps!

OtherwiseJunk commented 9 months ago

@dosuserx does this clean things up/make things more clear or are there any additional changes you were thinking of

dosuserx commented 9 months ago

this is perfect. sorry for spacing out, ive been focused on re-reading old content and writing but im about to start setting up for sess-zero soon and you've clear the hurdles for that.

dosuserx commented 9 months ago

...apart from security clearence. im not sure if i should ask you to set up a thing to track it and set initiative based on it, but im not sure what that would look like so im not gonna ask. id be happy to brainstorm about though. ive been trying to learn about macros but mods make making them real confusing.

OtherwiseJunk commented 7 months ago

@dosuserx I think I have a solution for this.

Going to be releasing a 0.4.0 version to make what I have available shortly.

I am now deriving security clearance from the actor name, assuming they meet the expected format of -[R,O,Y,G,B,I,V]-. Otherwise we assume they're infrared.

These value are available for use in macros, in case you have any other uses for them in mind. the variable names for this is either @sec or @securityClearance.

default (assumed infrared): 1 r: 2 ... v: 8

We are also using this value for the default """formula""" on initiative, so when you "roll" it'll just slot you in initiative based on your clearance (which is ultimately based on your characters name) image