Page 1 of 1

V5 (5th Edition of Vampire: the Masquerade)

Posted: Wed Mar 20, 2019 2:06 pm
by Epimetreus
It’s been so long, I can barely remember how to script... In honor of the new Testflight dN+1 release today, I'm posting to see if anyone still paying attention has thought about this yet.

Rolls are all d10, with a combination of regular and Hunger dice. Example: PC has a 5 die pool, her Hunger is 2. She rolls 3 regular and 2 Hunger dice.

1-5 on a regular die fails; 6-10 succeeds.
Any pair of 10s is a critical, worth 4 successes.

A failure (not enough total successes to beat the difficulty number) where a Hunger die is 1 is a special "Bestial Failure". A success where a Hunger die is 10 is a special "Messy Critical".

Partial solution:

Code: Select all

Parameter 1: Regular dice
Parameter 2: Hunger dice
Parameter 3: Difficulty (not used yet)

@1 ← #1Kd10@.
@2 ← #2Rd10@.
@3 ← count10(@1).
@4 ← count10(@2).
@5 ← count6(@1, @2) + count7(@1, @2) + count8(@1, @2) + count9(@1, @2).
@6 ← sum(@3, @4).
@7 ← sum(@5, @6 × 2) - (@6 % 2).
if (@3 ≥ 1 ∧ @4 ≥ 1) ∨ (@4 ≥ 2) then
   “\rMessy Critical: ” + @7 + “ successes”
elif (@3 ≥ 1 ∧ @4 ≥ 1) ∨ @6 ≥ 2 then
   “Critical: ” + @7 + “ successes”
elif (sum(@5, @6) < 1) ∧ count1(@2) then
   “\rBestial Failure”
elif @7 = 1 then
   @7 + “ success”
elif @7 = 0 then
   “Failure”
else
   @7 + “  successes”
end



I think I've got it now, even if @5 is clunky. I don't see a better way, though. Thoughts?

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Thu Mar 28, 2019 6:23 pm
by mythweaver
Looks interesting... My last post here was several years ago. It looks like some of the features are working again in the app, so I've been playing with ti some. I've been trying to get this: viewtopic.php?f=41&t=1731 to work. Took me forever just to figure out how to type it in... Then another hour or so to figure out how to get the parameter prompt to work... Finally got it! Yeah... I'm interested in doing some custom rolls and would be happy to trade notes here with anyone familiar with how the app is supposed to work. (My last post was in 2016 after more than a year of no response... )

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Thu Mar 28, 2019 7:52 pm
by Epimetreus
I’d be happy to help, if I can. What are you trying to do next?

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Thu Mar 28, 2019 11:44 pm
by mythweaver
Thanks. I'm trying to create a roll for my home-brew game of HarnMaster, it's a d% system with a minor twist which should be easy to do. I had the formula working in an older version but it got wiped in an upgrade. Simple formula, a d100 roll under a target determines success and failure. A critical die (d10) crits on a 5 or 0. I'd like the crit die to be open ended. e.g. if it crits roll again for a ladder of criticality...

Here is what I have so far.

Code: Select all

#1 "The Odds" (50 default)

#1.
@1←Rz5 @.
@2←Wd%@.
@3←#1-@2
if (@2 <= #1) then
   "Success" + @3
else
   "Failure" + @3
end  
Which kind of works... Output is a little weird. It looks like this:

(
"Success
40"
)

Not sure how to get rid of the quotes and parens...

As a next step I'd like to add Critical or Marginal based on the outcome of the red d5. e.g. it crits 20% of the time or on a roll of zero. That should just be basic nested if then else logic but when I try to next the app doesn't like the code and when it's trying to validate code it makes it harder to edit and correct the mistakes. Once that's working, I'd like to add up to two re-rolls of the crit die.

I'd also like to get a better feel for the art of the possible.

I had the hit location tables working in a previous version. I think I may try to do that next.

Is there any alternative to the die roll editor? If not how do you enter text? Its really counter intuitive to me and seems pretty buggy. I have to tap on the backspace key like 10 times to get it to take, and there doesn't seem to be any way to enter a string in places where you might want one.

Under Settings : Customize : Roll Macros - can you get these to work. When I attempt to edit a macro the app crashes.

I was playing with your roll definition, and couldn't get past the count10 function. It defaults to count1( ) and I couldn't find a way to change it to count10( )... how do you do that?

Thanks for any help you can provide.

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Fri Mar 29, 2019 9:31 am
by Epimetreus
Haven't been able to mess with your script yet.

The script editor on iPhone is indeed a pain. It took me forever to get that script in and properly debugged.

However:
If you have an external keyboard (I have a Bluetooth kbd for my iPad), it becomes much easier.

Also, in the latest beta, import of game rooms appears to be working properly, which means you can export a game room, edit your rolls in a text editor, and re-import.

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Fri Mar 29, 2019 2:39 pm
by mythweaver
Awesome. I will try on my ipad and work with the game room stuff this weekend. I'll let you know how it goes...

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Thu Apr 25, 2019 9:51 am
by Epimetreus
Did you have any luck?

Re: V5 (5th Edition of Vampire: the Masquerade)

Posted: Fri May 10, 2019 9:49 am
by Epimetreus
I think I neglected to post my most recent solution:

Code: Select all

Parameter #1 is the number of regular dice
Parameter #2 is the number of Hunger dice

@1←#1Kd10@.
@2←#2Rd10@.
@3←count10(@1).
@4←count10(@2).
@5←count6(@1,@2) + count7(@1,@2) + count8(@1,@2) + count9(@1,@2).
@6←(@3 + @4).
@7 ←sum(@5,@6 × 2) - (@6%2).
if  (@3 ≥ 1) ∧  @4 ≥ 1 ∨ (@4 ≥ 2) then 
 “Messy Critical: ” + @7 + “ successes”
elif (@3 ≥ 1 ∧ @4 ≥ 1) ∨ @6 ≥ 2 then 
 “Critical: ” + @7 + “ successes”
elif sum(@5, @6) < 1 ∧ (count1(@1) ≥ 1 ∨ count1(@2) ≥ 1) then
 “Bestial Failure”
elif @7 = 1 then
@7  + “ success”
elif @7 = 0 then 
 “Failure”
else
$7 + “ successes”
end