Jump to content
Sign in to follow this  
CamDawg

SetupWish

Recommended Posts

The current IESDP entry for SetupWish reads:

 

This action instructs the engine to use the fourth column of wish.2da and carry out a RandomNum(2,1) action starting at the top and working down. If the RandomNum returns with a 1 then the appropriate global for that spell is set. Once the maximum "wish choices" have been selected, the dialog continues and casts the selected spell.

 

Setting aside that the 'fourth column' should be 'designated column', there are further errors. A user over on the Beamdog forums set up a program to track results from 30,000 castings of Wish. If the current entry were accurate, we'd see the first five entries around 50% with the remainder dropping off as the engine progressed further down the list. Instead, we see that each entry has a roughly equal chance of being selected. This suggests that five entries, selected at equal weight, are pulled from the appropriate column in wish.2da and that there is no parse order.

Share this post


Link to post

Do you know what the second parameter is for? All users have it set to 1. All I can think of is perhaps what the variables are set to.

Share this post


Link to post

AFAICT, nothing. I did some quick testing with it changed to 0, 1, 2, and 8 and had no difference in the wish dialogue at all.

Share this post


Link to post

The second parameter initially was the number of wish choices set up, but then it was hard coded to 5.

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...