Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Add num_digits parameter to getnumber

0 replies · 2,411 views · Started 09 March 2024

In some integer prompts, it doesn't make sense to enter a huge integer. It would probably be better to disallow typing huge integers in in the first place rather than only relying on clamping them after the fact.

Example:

[LIST=1]
[*]Quest->Misc Data->Triforce Pieces
[*]Click any of the 8 squares within the triforce fragments
[*]Type a very large number in the "Piece Number" prompt
[*]Click 'OK'
[*]Observe that fragment number has been clamped to 8
[/LIST]

This is only a suggestion to add a parameter to the getnumber function in zquest.cpp and not a suggestion to remove the clamping.