Please note that you can subscribe to the individual forums. A subscription for news only covers the news.
Would it be possible to allow a string to stand in for a ‘line’ in a lines job?
My tests say it’s not currently possible, though my tests are not renowned for reliability.
Understood. The script is a growing magnificence of cogs and wheels that ascribes variables appropriately to punishments. Each new addition is like a round of Mousetrap! (Ever played that?)
No, I haven't played Mousetrap.
Just an advice: Try to keep it as simple as possible. A complicated script is difficult to maintain. Like any other program.
The advice is appreciated. Simplicity isn’t easy, is it? Who was it who said “If I’d had more time I would have made this letter shorter?” I think Blaise Pascal. Or so they say.
I ain’t him. After five or six months working with VM I’m still a kid in a toyshop. A lot of my script is simple enough, with padding for randomisation, but much fun comes from tracking behaviour and reincorporating events. I dream up intricate systems of variables requiring swathes of administrative script, and much of this may turn out to be too complex for its own good, or simply beyond my mental pay-grade. Producing a holistic user experience will take time, and it may well require that I aim lower!
Anyway, if it seems I’m ignoring your advice, call it beginner exuberance.
Not sure I get the EXPAND reference, although maybe I do. Ew!
Also not sure I can add much to your repertoire – some of my favourite ideas have come from you and SubParProgrammer. But in short, yes. Is it possible to PM on this platform, or do we need to exchange mails?
Back to the beginning. 🙂 It is possible to use variables in lines in jobs and punishments in the new beta 14.
If I implement it, it will be the value of the variable of the time when the job is announced, that will be used. Not the value at the time when the sub starts writing the lines.
This will not help you, but I have to speak! I didn’t fully appreciate this note of caution. Amazingly (or not) after all this time, I have just realised that a MaxTime variable is also handled this way. Just as punish value and respite, it's fixed on announcement and cannot be - need not be - set in the beforeprocedure. Lords of molly, what a knob I am.
I can’t believe it. But it’s actually easier this way, isn’t it? The maxtime and line string values would be more delicate if they could change while the job was pending. As it is, they can just be set in the script and the job announced - no need for elaborate systems for storing the values until the job is started. It seems easier this way for one job template to suit differing values. In short, it's not a caution; it's good news.
Gonna need a new drawing board soon.