CamDawg Posted October 12, 2018 Share Posted October 12, 2018 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. Quote Link to comment
lynx Posted October 12, 2018 Share Posted October 12, 2018 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. Quote Link to comment
CamDawg Posted October 12, 2018 Author Share Posted October 12, 2018 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. Quote Link to comment
lynx Posted October 12, 2018 Share Posted October 12, 2018 Ok, thanks. Updated iesdp. Quote Link to comment
Avenger Posted October 13, 2018 Share Posted October 13, 2018 The second parameter initially was the number of wish choices set up, but then it was hard coded to 5. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.