View Single Post
  #17  
Old January 15th, 2010, 02:36 AM

sgqwonkian sgqwonkian is offline
Sergeant
 
Join Date: Aug 2007
Location: Seattle
Posts: 231
Thanks: 3
Thanked 13 Times in 10 Posts
sgqwonkian is on a distinguished road
Default Re: Variations in Friendliness

Debugging suggestions:

Change "SVAR wormthink wormlove" to "UVAR wormthink wormlove" in the STAR block. UVAR initializes a variable, SVAR sets it if you're changing the variable's value after it's been initialized. You always have to UVAR before you can SVAR. Also, the modmaker's guide only lists UVAR for STAR blocks, and lists SVAR for PAGE blocks. I suspect they only work in the proper block types.

That change alone will probably solve your problems.

However, I'd also delete the entire PAGE 1 and PAGE 2 blocks. I don't think they'll generate randomly. I'm pretty sure it'll always read PAGE 0 first. Since PAGE 0 has both "endquest" and "break", it'll never check the pages after that once PAGE 0 has run. If PAGE 0 doesn't run (because you haven't UVAR'd the variable), then PAGE 1 and PAGE 2 still won't trigger.

Lastly, in PAGE 0, you might consider changing the order of the lines to ACTN, GFXP, TITL, TEXT, MUSC, FRND. (So, move MUSC to the bottom of the page, then move FRND right below it.) IIRC, the pages are sometimes very sensitive to component order, and won't load things if they occur at the wrong place in the page. Sometimes you can be lazy / sloppy and get lucky, but othertimes the game gets strict, and it's hard to predict. Some things can be out-of-order, but others can't. In general, you're best off if you try to follow the order they appear at in the Modmaker's Guide.

I'm fairly confident those changes should fix it, with the UVAR change being the most important part.
__________________
WW:RTIS & modding: http://transitivegaming.blogspot.com...abel/WW%3ARTIS
Other gaming stuff: http://transitivegaming.blogspot.com
The Following User Says Thank You to sgqwonkian For This Useful Post: