12-23-2022, 04:56 AM
I want to let my program construct global names under Emu48/HP48GX. Here is the use case: character generation for a role-playing game. The game provides a number of skills with (human) defaults, and each sapient species alters this list: dwarves know nothing of Boating but are adept with Mineral Lore, for example.
So I want the stack to be
2: {list-of-adjustments}
1: 'SPECIES-CODE'
and the program DO$ADJ will handle the overwriting/merging of the list, first making a copy of the defaults (SP$SKB) and assigning it to, say, 'DW$SKB' for dwarves, which name I want to construct in-program. Simply concatenating 'DW' and '$SKB'gives 'DW+$SKB', which isn't what I want given my naming conventions. I suppose I could just join 'DW' and 'SKB' yielding 'DW+SKB', but is there a way to get the name I want?
So I want the stack to be
2: {list-of-adjustments}
1: 'SPECIES-CODE'
and the program DO$ADJ will handle the overwriting/merging of the list, first making a copy of the defaults (SP$SKB) and assigning it to, say, 'DW$SKB' for dwarves, which name I want to construct in-program. Simply concatenating 'DW' and '$SKB'gives 'DW+$SKB', which isn't what I want given my naming conventions. I suppose I could just join 'DW' and 'SKB' yielding 'DW+SKB', but is there a way to get the name I want?