Let me explain:
So I have an "Attack Roll" macro for my GURPS game. (pasted below)
The idea is that this macro does almost everything we need for an attack roll:
1. Asks player what their skill level is ("Effective_Skill_Level")
2. Rolls 3d6
3. Compares the 3d6 roll to the skill level,
4. Tell the player if the result is a hit, miss, critical hit, or critical miss,
5. If the result is a hit (or a critical hit) it runs the hit-location table.
The problem I am having is that this table has certain entries that lead to other tables. But since the table function doesn't actually run the table the same as if you run the table directly, it doesn't access the secondary tables, but just outputs the command from that line as text.Attack Skill:
[T: Skill = Effective_Skill_Level]
, Roll:
[T: Roll = 3d6]
-
[t,if(Roll <= 4): output = "CRITICAL"; output = ""]
[t,if(Roll == 5 && Skill >= 15): output = "CRITICAL"; output = ""]
[t,if(Roll == 6 && Skill >= 16): output = "CRITICAL"; output = ""]
[t,if(Roll <= Skill): output = "HIT!"; output = ""]
[t,if(Roll <= Skill): output = ", Hit Location: "; output = ""]
[t,if(Roll <= Skill): tbl("HitLocation"); output = ""]
[t,if(Roll == 18): output = "CRITICAL"; output = ""]
[t,if(Roll == 17 && Skill <=15): output = "CRITICAL"; output = ""]
[t,if(Roll >= Skill+10 && Roll <=16): output = "CRITICAL"; output = ""]
[t,if(Roll > Skill): output = "MISS!"; output = ""]
As an example: One of the entries on the table is
9-10 | /tbl Torso
So if a torso hit is indicated by the roll, it goes to the second table which has a 1/6 chance to hit vitals.
But the output from the macro doesn't run the second table. It just looks like this:
Again: Is there a way to run the table, from a macro, in a way that the table will run /tbl commands from its own results?Attack Skill: 12 , Roll: 6 - HIT! , Hit Location: /tbl Torso
Thanks