Why does the first example work while the second one doesn't?
Here i set a namespace variable !dynamic to the concatenated result of 'carpentry' and '_crafting_gump_resource'.
set !resource iron
set !gump_type carpentry
set !dynamic !gump_type , _crafting_gump_resource ; !dynamic = string 'carpentry_crafting_gump_resource'
display % . !dynamic ; N/A = which is what i'm looking for
I want to check if the dynamic variable has ever been set before by checking if it's N/A.
I want it to be "if %carpentry_crafting_gump_resource = N/A"
set !resource iron
set !gump_type carpentry
if % . ( !gump_type , _crafting_gump_resource ) = N/A ; this makes a string %(carpentry_crafting_gump_resource)
{
set % . ( !gump_type , _crafting_gump_resource ) !resource
display %carpentry_crafting_gump_resource
}
halt