I am trying to add 2 new properties to the Player (selfobj). I have tried following the examples given in this old post without success.
I am using Inform v6.31 with Library 6/11
I copied the selfobj definition from parserm.h and then added the new properties - strength & wisdom and renamed the copied selfobj to My_selfobj as per Andrew Plotkin’s second response in the post.
Object My_selfobj "(self object)"
with short_name [; return L__M(##Miscellany, 18); ],
description [; return L__M(##Miscellany, 19); ],
has concealed animate proper transparent;
Then in the Initialise routine, I invoked player=My_selfobj; as the first statement before setting the start location.
Have also tried moving it to after the start location is declared but results are no better.
Location = L_Path;
It all compiles OK, but when I do SHOWOBJ me, I get the following…
It seems that the properties are being set to objects 100 & 35 whereas they should just be 100 & 35 as set in My_selfobj definition.
Am I doing this right? Or am I missing something?