
JASS:
native DialogAddButton takes dialog whichDialog, string buttonText, integer hotkey returns button
Integer is ASCII. Please extract the common.j and use that as your first port of call. Actually, you should have newgen, and that has a function list in it which you can use.