Jump to content

Photo

SetupWish


4 replies to this topic

#1 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Gibberling Poobah
  • 9724 posts
  • Gender:Not Telling

Posted 11 October 2018 - 08:37 PM

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.


Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.


#2 lynx

lynx
  • Modders
  • 3139 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 11 October 2018 - 11:05 PM

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.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Play android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...


#3 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Gibberling Poobah
  • 9724 posts
  • Gender:Not Telling

Posted 12 October 2018 - 02:48 AM

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.


Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.


#4 lynx

lynx
  • Modders
  • 3139 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 12 October 2018 - 03:06 AM

Ok, thanks. Updated iesdp.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Play android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...


#5 Avenger

Avenger
  • Modders
  • 3803 posts
  • Gender:Male
  • Location:Hungary

Posted 13 October 2018 - 01:08 AM

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





Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users