Getting a multiple-choice Message Box by reading a book?

Post » Wed Jun 20, 2012 11:01 am

There's always more than one way to skin a cat, but that would require just as much code if not more to properly conditionalize what the buttons do and not all messagess are always the same in the menus I'm making, not to mention I've already cases where I need button #8. I need more ...elasticity and your method would be far too restrictive, thus I'll not adopt it.
User avatar
Laura Tempel
 
Posts: 3484
Joined: Wed Oct 04, 2006 4:53 pm

Post » Wed Jun 20, 2012 10:54 am

Fair enough, you can still cleanup Property declaration using arrays though :P

Message[] Property MyMessage Auto

as opposed to...

Message Property MyMessage00 Auto
Message Property MyMessage01 Auto
Message Property MyMessage02 Auto
Message Property MyMessage03 Auto
Message Property MyMessage04 Auto
Message Property MyMessage05 Auto

Script doesn't have to save all the variable names independently into it when you use arrays for mass declaration.
User avatar
Soph
 
Posts: 3499
Joined: Fri Oct 13, 2006 8:24 am

Post » Wed Jun 20, 2012 7:25 am

To each their own, but properties don't bother me or beg for "cleanup" and keeping track of all the MESG indices would just make things, IMO, unnecessarily abstract. The character count would go down, sure, but at the expense of legibility.
User avatar
Cash n Class
 
Posts: 3430
Joined: Wed Jun 28, 2006 10:01 am

Post » Wed Jun 20, 2012 10:41 am

If only we had preprocessors :(...
User avatar
Shannon Marie Jones
 
Posts: 3391
Joined: Sun Nov 12, 2006 3:19 pm

Post » Tue Jun 19, 2012 10:08 pm

Eh?
.
Correct me if I'm somehow wrong, but all this stuff get's compiled so, at runitime, it doesn't matter whether you're using code optimized for space based on arrays or if you have variable names 50 characters long and 50 pages of commentary for each line of code. At compile, the code gets turned into something more legible to the machine. As long as we are talking about source code it is important that it is legible to you and the other people who work with you, no? You will be forced to understand this in a very visceral way when you come back to some source code you consider important but have not looked at in too many years.
.
Resistance is futile.
.
Now, if you are one of the minority who can read numerical cribs as well as you can read names (because you have a extremely rare ability to attribute meaning on the fly) it is important to understand that most other people do not share this ability (and some even glaze over when confronted with standard physics' equations). On the other hand, having an ability like this would make you a very talented bit-picker and the people who could read and write raw machine code are nearly all retired or dead. In fact, it has been several years, now, since I last encountered an anti-virus company that could get their hands on a machine coder. So if you can perceive in numbers as well as most people can perceive a well worded commentary, delving into x86 and x64 architecture and command reference might prove profitable, to say the least; Not to mention the fact that most of this material comprises the basis of technical specifications which are in the public domain to ensure the merchantability of the attached hardware.
User avatar
.X chantelle .x Smith
 
Posts: 3399
Joined: Thu Jun 15, 2006 6:25 pm

Previous

Return to V - Skyrim