I am having several problems with my smaug code modifications and also a perhaps simpler problem.
1: How would I create a random prog that selects a character at random from a room and then transes them? I tried:
if isGood($r)
mptrans $n <roomnum>
endif
and that didnt work. I assumed that if I replace the $n with a second $r, it would randomly select a second character to trans instead of the first.
2: I am getting a continuing error, random in occurence it seems, but the windows debuggers tells me it is always one of a few lines of code designed to replace normal descriptions etc with morph descriptons. ie:
if (victim->morph != NULL && victim->morph->morph != NULL)
and the same in several other places.
3: My third difficult comes with adding of new wearlocations. I added:
{
"2", "d", 16, 39, "%1.1s", NULL, STRING, 1, "oset %s wear tattoo"
},
{
"2", "d", 16, 64, "%1.1s", NULL, STRING, 1, "oset %s wear orbit"
},
and changed the "2", "d", 16, 64, in the wearloc before that to "2", "d", 16, 24.
all to obj_page_e_data[] in ibuild.c
This has seriously messed up my object making, completely disabling prototype use and various other problems. I would really appriciate help on this. |