Forgive the possibly dumb question, but I've been slamming my head against this for a week now.
I'm trying to make IPP generate 2 rolls from the same table, then if the first and second roll are the same, replace the second with a different value.
here is my test code
Set: B=[@Roll]
Set: A=[@Roll]
[when] {$A} = {$B} [do] [B==Carter] [end]
Table: MyTable
{$A} {$B}
Table: Roll
Allen
Bradley
and here are the only unique outputs
Allen Allen
Allen Bradley
Bradley Allen
Bradley Bradley
Never Allen Carter or Bradley Carter. I've read and re-read the help files on variables and conditionals so much that they've lost all their meaning. I'm sure this is not an impossible task, but I'm stumped. I've imagined a couple of possible workarounds, but I really want to learn how to do variables and conditionals right.
Thanks in advance!
-Cliffy
Comments
The generator is for Gamma World 2010 characters. The way you make a character is to roll for a primary and secondary origin, both from the same table. If you roll the same entry for both, then your secondary becomes "Engineered Human" instead (this is the only way to get the engineered human origin).
The origin table has 20 entries (which is why I truncated the example), so when I run the genny I get a lot of "Android Cockroach" and "Felinoid Speedster", but every now and then I get "Yeti Yeti". Engineered human never occurs.
Here is the actual code
Sorry for the confusion, but hopefully the problem makes more sense now.
which outputs: