Well I progress as if wading through treacle.
I am now trying to define a new relation that allows players to put something beside something else. So put duck beside scientist would do as you expect.
I think I need 3 (?) new bits of code for this.
- an action to handle the actual putting beside stuff
2 a relationship so that you can code - if the duck is beside the scientist
- a chunk in the looking secton that states ‘the duck is beside the scientist’.
Needless to say I’m not getting very far.
looking at the annotated source it looks like the closest action is Inserting something into, the problem I have is there is no ‘anything’ to insert in as the second noun is in effect a location not a physical item.
There are currently containers and supporters in inform. I’m guessing that these work as relations (?) but honestly cannot get my head around the annototated source for them.
I added an object called near to things ( a thing has an object called near ) thinking that I could somehow add the second noun to the first noun’s near object and then use the following relation…
to decide if something (item - an object) is beside something else (dooda - an object): if the near of the item is the dooda, decide yes; otherwise decide no;
I tried defining a new verb (beside) but just kept getting problem messages and I really cannot figure how to tie it all together. (In particular I fail to comprehend how to add rules to the looking rule - or whatever its called ).
Am I heading the right way, or just up a blind alley?
Advice and guidance as always hugely appreciated.