Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Attributes & Abilities Macro

I am using a Roll20 character sheet.  I want a macro that will pull the info from the selected player's character sheet.  So far I'm hitting a stone wall.  Anyone know how to do this?
1501116109

Edited 1501116201
vÍnce
Pro
Sheet Author
What sheet are you using KenB?  If you know the attribute names used for the sheet, you should be able to do something as simple as &{template:default} {{name=@{selected|character_name}'s Stats}} {{HP=@{selected|hp}/@{selected|hp|max} }} {{AC=@{selected|ac}}}
1501117230

Edited 1501117284
KenB
Pro
I'm using the Traveller 1st Edition.  Traveller doesn't use D&D stats (or much else actually).  It uses 2d6+modifiers for almost everything.  For attributes such as:   (mod-strength     or     HeavyWeapons     or     calc-Endurance).  There are many many more for different things but these are 3 of them.
1501118165

Edited 1501118260
vÍnce
Pro
Sheet Author
I'm not familiar with the Traveller sheet, however if you open the sheet and right-click|inspect element on input fields or auto calculated numbers, you can learn the attribute name from the sheets code(html) to help build your own macro for the Traveller sheet.  Example; if I use inspect element on the Strength rating number, I can see name="attr_base-Strength" which means the attribute name I can use would be @{selected|base-Strength}.  Just ignore "attr_", that's used by the code to indicate an attribute.  If I inspect Strength mod, I can determine that the attribute is @{selected|mod-Strength}  You should be able to learn enough attribute names with this method to come up with your own macro to pull stats from a selected token, linked to a character.  Does that help?
1501118496

Edited 1501118623
The Aaron
Pro
API Scripter
If it helps, here's a list of all the attributes mentioned in the Mongoose Traveler sheet: Admin Admin_show Advocate Advocate_show Animals Animals_show Animals_spec_show Armour_Cost Armour_qualities Armour_type Art Art_show Art_spec_show Astrogation Astrogation_show Athletics Athletics_show Athletics_spec_show BattleDress BattleDress_show Broker Broker_show CPU CPU_Slots CPU_size_Cost CPU_size_Mass Carouse Carouse_show CashonHand Comms Comms_show Communication Communication_Slots Communication_qualities Communication_size_Cost Communication_size_Mass Computer_qualities Computers Computers_show Debt Deception Deception_show Diplomat Diplomat_show Drive Drive_show Drive_spec_show Engineer Engineer_show Engineer_spec_show Explosives Explosives_show Financescheck Flyer Flyer_show Flyer_spec_show Frame Frame_Armour Frame_Hull Frame_Size Frame_Slots Frame_Structure Frame_qualities Frame_size_Cost Frame_size_Mass Gadgets Gadgets_Slots Gadgets_qualities Gadgets_size_Cost Gadgets_size_Mass Gambler Gambler_show GunCombat GunCombat_show GunCombat_spec_show Gunner Gunner_show Gunner_spec_show HeavyWeapons HeavyWeapons_show HeavyWeapons_spec_show Investigate Investigate_show JackOfAllTrades JackOfAllTrades_show Language Language_show Language_spec_show Leadership Leadership_show LifeSciences LifeSciences_show LifeSciences_spec_show Manipulator Manipulator_Size Manipulator_Slots Manipulator_qualities Manipulator_size_Cost Manipulator_size_Mass Mechanic Mechanic_show Medic Medic_show Melee Melee_show Melee_spec_show Memory Memory_Cost MonthlyShipPayment Navigation Navigation_show Pension Persuade Persuade_show PhysicalSciences PhysicalSciences_show PhysicalSciences_spec_show Pilot Pilot_show Pilot_spec_show Recon Recon_show RemoteOps RemoteOps_show RobotOrigin RobotProducer RobotType Seafarer Seafarer_show Seafarer_spec_show Sensors Sensors_show Skill Skill_Show SocialSciences SocialSciences_show SocialSciences_spec_show Software Software_Cost Software_qualities SpaceSciences SpaceSciences_show SpaceSciences_spec_show Stealth Stealth_show Steward Steward_show Streetwise Streetwise_show Survival Survival_show Tactics Tactics_show Tactics_spec_show Trade Trade_show Trade_spec_show Transportation Transportation_Size Transportation_Slots Transportation_qualities Transportation_size_Cost Transportation_size_Mass Unit Unit_Armour Unit_Hull Unit_Size Unit_Slots Unit_Structure Unit_size_Cost Unit_size_Mass VaccSuit VaccSuit_show ZeroG ZeroG_show armornotes armour-RequiredSkill armour-mass armour-protection armour-type base-Dexterity base-Education base-Endurance base-Intellect base-PsionicStrength base-Social base-Strength calc-Dexterity calc-Education calc-Endurance calc-Intellect calc-PsionicStrength calc-Social calc-Strength character_Homeworld1 character_age character_history character_name character_race completeweight gear_mass-1 gear_mass-2 gear_mass_total-1 gear_mass_total-2 gear_name-1 gear_name-2 gear_name-left gear_name-right gear_quantity-1 gear_quantity-2 gearcheck gearcheck2 gearnotes-1 gearnotes-2 gearnotes-left gearnotes-right history-date history-event historycheck initiativeattribute injury-Dexterity injury-Education injury-Endurance injury-Intellect injury-PsionicStrength injury-Social injury-Strength massleft massright masstotalleft masstotalright melee_show_range melee_show_range-a mod-Dexterity mod-Education mod-Endurance mod-Intellect mod-PsionicStrength mod-Social mod-Strength name-allies name-allies2 name-contact name-contact2 name-enemies name-enemies2 name-rivals name-rivals2 note-allies note-allies2 note-contact note-contact2 note-enemies note-enemies2 note-history note-rivals note-rivals2 otherwealth_item_note otherwealth_location otherwealth_name otherwealth_value quantityleft quantityright range_show_range-1 range_show_range-b reference-allies reference-allies2 reference-contact reference-contact2 reference-enemies reference-enemies2 reference-rivals reference-rivals2 skillCharacteristicDM-Admin skillCharacteristicDM-Advocate skillCharacteristicDM-Animals skillCharacteristicDM-Art skillCharacteristicDM-Astrogation skillCharacteristicDM-Athletics skillCharacteristicDM-BattleDress skillCharacteristicDM-Broker skillCharacteristicDM-Carouse skillCharacteristicDM-Comms skillCharacteristicDM-Computers skillCharacteristicDM-Deception skillCharacteristicDM-Diplomat skillCharacteristicDM-Drive skillCharacteristicDM-Engineer skillCharacteristicDM-Explosives skillCharacteristicDM-Flyer skillCharacteristicDM-Gambler skillCharacteristicDM-GunCombat skillCharacteristicDM-Gunner skillCharacteristicDM-HeavyWeapons skillCharacteristicDM-Investigate skillCharacteristicDM-JackOfAllTrades skillCharacteristicDM-Language skillCharacteristicDM-Leadership skillCharacteristicDM-LifeSciences skillCharacteristicDM-Mechanic skillCharacteristicDM-Medic skillCharacteristicDM-Melee skillCharacteristicDM-Navigation skillCharacteristicDM-Persuade skillCharacteristicDM-PhysicalSciences skillCharacteristicDM-Pilot skillCharacteristicDM-Recon skillCharacteristicDM-RemoteOps skillCharacteristicDM-Seafarer skillCharacteristicDM-Sensors skillCharacteristicDM-SocialSciences skillCharacteristicDM-SpaceSciences skillCharacteristicDM-Stealth skillCharacteristicDM-Steward skillCharacteristicDM-Streetwise skillCharacteristicDM-Survival skillCharacteristicDM-Tactics skillCharacteristicDM-Trade skillCharacteristicDM-VaccSuit skillCharacteristicDM-ZeroG skillCharacteristicDM-power skillCharacteristicDM-repeat skillCharacteristicDM-reppower skillDM-Admin skillDM-Advocate skillDM-Animals skillDM-Art skillDM-Astrogation skillDM-Athletics skillDM-BattleDress skillDM-Broker skillDM-Carouse skillDM-Comms skillDM-Computers skillDM-Deception skillDM-Diplomat skillDM-Drive skillDM-Engineer skillDM-Explosives skillDM-Flyer skillDM-Gambler skillDM-GunCombat skillDM-Gunner skillDM-HeavyWeapons skillDM-Investigate skillDM-JackOfAllTrades skillDM-Language skillDM-Leadership skillDM-LifeSciences skillDM-Mechanic skillDM-Medic skillDM-Melee skillDM-Navigation skillDM-Persuade skillDM-PhysicalSciences skillDM-Pilot skillDM-Recon skillDM-RemoteOps skillDM-Seafarer skillDM-Sensors skillDM-SocialSciences skillDM-SpaceSciences skillDM-Stealth skillDM-Steward skillDM-Streetwise skillDM-Survival skillDM-Tactics skillDM-Trade skillDM-VaccSuit skillDM-ZeroG skillDM-repeat skillName-repeat skillSpeciality-Animalsspec skillSpeciality-Artspec skillSpeciality-Athleticsspec skillSpeciality-Drivespec skillSpeciality-Engineerspec skillSpeciality-Flyerspec skillSpeciality-GunCombatspec skillSpeciality-Gunnerspec skillSpeciality-HeavyWeaponsspec skillSpeciality-Languagespec skillSpeciality-LifeSciencesspec skillSpeciality-Meleespec skillSpeciality-PhysicalSciencesspec skillSpeciality-Pilotspec skillSpeciality-Seafarerspec skillSpeciality-SocialSciencesspec skillSpeciality-SpaceSciencesspec skillSpeciality-Tacticsspec skillSpeciality-Tradespec skillSpeciality-power skillSpeciality-repeat skillSpeciality-reppower skill_all skill_combat skilllevel-Admin skilllevel-Advocate skilllevel-Animals skilllevel-Animalsspec skilllevel-Art skilllevel-Artspec skilllevel-Astrogation skilllevel-Athletics skilllevel-Athleticsspec skilllevel-BattleDress skilllevel-Broker skilllevel-Carouse skilllevel-Comms skilllevel-Computers skilllevel-Deception skilllevel-Diplomat skilllevel-Drive skilllevel-Drivespec skilllevel-Engineer skilllevel-Engineerspec skilllevel-Explosives skilllevel-Flyer skilllevel-Flyerspec skilllevel-Gambler skilllevel-GunCombat skilllevel-GunCombatspec skilllevel-Gunner skilllevel-Gunnerspec skilllevel-HeavyWeapons skilllevel-HeavyWeaponsspec skilllevel-Investigate skilllevel-JackOfAllTrades skilllevel-Language skilllevel-Languagespec skilllevel-Leadership skilllevel-LifeSciences skilllevel-LifeSciencesspec skilllevel-Mechanic skilllevel-Medic skilllevel-Melee skilllevel-Meleespec skilllevel-Navigation skilllevel-Persuade skilllevel-PhysicalSciences skilllevel-PhysicalSciencesspec skilllevel-Pilot skilllevel-Pilotspec skilllevel-Recon skilllevel-RemoteOps skilllevel-Seafarer skilllevel-Seafarerspec skilllevel-Sensors skilllevel-SocialSciences skilllevel-SocialSciencesspec skilllevel-SpaceSciences skilllevel-SpaceSciencesspec skilllevel-Stealth skilllevel-Steward skilllevel-Streetwise skilllevel-Survival skilllevel-Tactics skilllevel-Tacticsspec skilllevel-Trade skilllevel-Tradespec skilllevel-VaccSuit skilllevel-ZeroG skilllevel-power skilllevel-repeat skilllevel-reppower skillmodifier-Admin skillmodifier-Advocate skillmodifier-Animals skillmodifier-Art skillmodifier-Astrogation skillmodifier-Athletics skillmodifier-BattleDress skillmodifier-Broker skillmodifier-Carouse skillmodifier-Comms skillmodifier-Computers skillmodifier-Deception skillmodifier-Diplomat skillmodifier-Drive skillmodifier-Engineer skillmodifier-Explosives skillmodifier-Flyer skillmodifier-Gambler skillmodifier-GunCombat skillmodifier-Gunner skillmodifier-HeavyWeapons skillmodifier-Investigate skillmodifier-JackOfAllTrades skillmodifier-Language skillmodifier-Leadership skillmodifier-LifeSciences skillmodifier-Mechanic skillmodifier-Medic skillmodifier-Melee skillmodifier-Navigation skillmodifier-Persuade skillmodifier-PhysicalSciences skillmodifier-Pilot skillmodifier-Recon skillmodifier-RemoteOps skillmodifier-Seafarer skillmodifier-Sensors skillmodifier-SocialSciences skillmodifier-SpaceSciences skillmodifier-Stealth skillmodifier-Steward skillmodifier-Streetwise skillmodifier-Survival skillmodifier-Tactics skillmodifier-Trade skillmodifier-VaccSuit skillmodifier-ZeroG skillmodifier-power skillmodifier-repeat skillmodifier-reppower skillnote-power skillnote-reppower skilltotal-Admin skilltotal-Advocate skilltotal-Animals skilltotal-Animalsspec skilltotal-Art skilltotal-Artspec skilltotal-Astrogation skilltotal-Athletics skilltotal-Athleticsspec skilltotal-BattleDress skilltotal-Broker skilltotal-Carouse skilltotal-Comms skilltotal-Computers skilltotal-Deception skilltotal-Diplomat skilltotal-Drive skilltotal-Drivespec skilltotal-Engineer skilltotal-Engineerspec skilltotal-Explosives skilltotal-Flyer skilltotal-Flyerspec skilltotal-Gambler skilltotal-GunCombat skilltotal-GunCombatspec skilltotal-Gunner skilltotal-Gunnerspec skilltotal-HeavyWeapons skilltotal-HeavyWeaponsspec skilltotal-Investigate skilltotal-JackOfAllTrades skilltotal-Language skilltotal-Languagespec skilltotal-Leadership skilltotal-LifeSciences skilltotal-LifeSciencesspec skilltotal-Mechanic skilltotal-Medic skilltotal-Melee skilltotal-Meleespec skilltotal-Navigation skilltotal-Persuade skilltotal-PhysicalSciences skilltotal-PhysicalSciencesspec skilltotal-Pilot skilltotal-Pilotspec skilltotal-Recon skilltotal-RemoteOps skilltotal-Seafarer skilltotal-Seafarerspec skilltotal-Sensors skilltotal-SocialSciences skilltotal-SocialSciencesspec skilltotal-SpaceSciences skilltotal-SpaceSciencesspec skilltotal-Stealth skilltotal-Steward skilltotal-Streetwise skilltotal-Survival skilltotal-Tactics skilltotal-Tacticsspec skilltotal-Trade skilltotal-Tradespec skilltotal-VaccSuit skilltotal-ZeroG skilltotal-repeat skilluntrained-repeat study-skill study-weeks studynotes studyskill studyweeks tab totalweight totalweight-1 untrained-Admin untrained-Advocate untrained-Animals untrained-Art untrained-Astrogation untrained-Athletics untrained-BattleDress untrained-Broker untrained-Carouse untrained-Comms untrained-Computers untrained-Deception untrained-Diplomat untrained-Drive untrained-Engineer untrained-Explosives untrained-Flyer untrained-Gambler untrained-GunCombat untrained-Gunner untrained-HeavyWeapons untrained-Investigate untrained-JackOfAllTrades untrained-Language untrained-Leadership untrained-LifeSciences untrained-Mechanic untrained-Medic untrained-Melee untrained-Navigation untrained-Persuade untrained-PhysicalSciences untrained-Pilot untrained-Recon untrained-RemoteOps untrained-Seafarer untrained-Sensors untrained-SocialSciences untrained-SpaceSciences untrained-Stealth untrained-Steward untrained-Streetwise untrained-Survival untrained-Tactics untrained-Trade untrained-VaccSuit untrained-ZeroG weapon_DM-1 weapon_DM-2 weapon_DM-a weapon_DM-b weapon_cost-2 weapon_cost-b weapon_damage-dice-1 weapon_damage-dice-2 weapon_damage-dice-a weapon_damage-dice-b weapon_magazine-2 weapon_magazine-b weapon_name-1 weapon_name-2 weapon_name-a weapon_name-b weapon_note-1 weapon_note-2 weapon_note-a weapon_note-b weapon_range-2 weapon_range-b weapon_range_close-2 weapon_range_close-b weapon_range_distant-2 weapon_range_distant-b weapon_range_long-2 weapon_range_long-b weapon_range_medium-2 weapon_range_medium-b weapon_range_short-2 weapon_range_short-b weapon_range_verylong-2 weapon_range_verylong-b weapon_skill-1 weapon_skill-2 weapon_skill-a weapon_skill-b weapon_tl-1 weapon_tl-2 weapon_tl-a weapon_tl-b weapon_trained-1 weapon_trained-2 weapon_trained-a weapon_trained-b weaponmelee_range-1 weaponmelee_range-a weaponmelee_range_close-1 weaponmelee_range_close-a weight-1 weight-2 weightleft weightright (Some of these will be in repeating groups, so if it tells you it doesn't exist, that's why...)
Thanks to both of you.This helps a lot.  Where did you get that list from Aaron?
1501121406
The Aaron
Pro
API Scripter
Grepping the source for anything that starts with attr_. :)
1501121909
vÍnce
Pro
Sheet Author
I did this for the Pathfinder sheet 2 years ago and we had over 2500+ attributes at that time!