Joined: 11/18/2006
Posts: 2426
Location: Back where I belong
Since I have no history with coding or programming, I can only assume this means there is some form of time travel involved :D So in that case, sign me up for a test run!
There is an error in your function. It adds 10 into what the player is now. For example, if I now possess 1000€ of money, it claims I then possess 1010€ of money.
The key is "unit". Your program does not indicate the unit of the number 10. Fix it. Presumably it should be something time related.
Do note that you cannot just add apples and oranges together. You need to code a framework that transforms another unit by a time unit.
Perhaps some simple formula will do.
function tenyears($player) {
// we're working with a copy, so mess with their variables as needed
// however we should probably work with a paused copy
$player['mode'] = SUSPENDED_ANIMATION;
// fire the time machine up
$player['age'] += yearstodefaulttime(10);
// let the other idiot deal with not blowing up the universe now
return $player;
}
The external program handling the check would simply instantly create an inactive copy of you, compare your changes from ten years to the current you, and then instantly destroy the copy.
(Now if I made it "function tenyears(&$player)", we'd have a problem...)
Joined: 12/26/2006
Posts: 256
Location: United States of America
You were using your "playful/fun" avatar. First it was the PET emulator (I still have no idea what's going on in that code), then the whole Genesis Gods thread fiasco (a fiasco for me, anyway), and now it's this. Do you enjoy making fun of my programming skills? ; )
Anyway, in ten years my software company will have put Microsoft Corporation out of business after stealing all their market share with my revolutionary new operating system.
ME: Ruler of the Universe
RRidgway: Slave *delete* WHIPPED BY A CAT O' NINE TAILS!
Bisqwit: Slave
Phil: Slave
Nitsuja: Slave
Bag of Magic Food: Slave
Mmbossman: Slave
FractalFusion: Slave
Primorial#Soup: Slave
In 10 years, I'll probably be working as an overworked, underpaid software developer for a ridiculously large company, have my own cubicle, and be referred to by my immediate superiors solely by a personal identification number.
That sums it up pretty well.
Joined: 12/26/2006
Posts: 256
Location: United States of America
I know that... I was laughing along with your previous post and poking fun at you for poking fun at me by facetiously demanding semantic corrections to a facetiously created computer program function; obviously, in all this facetious poking fun, no harm was done...
...and, I was also pointing out that this theme has also occurred in some of our discussions in the past, thus facetiously asking, "Do you enjoy making fun of my programming skills?" Of course I know you don't -- and if I thought you did, and actually wasted my mental energy being offended at something posted in an internet forum... well... -- and not to direct this at anyone else -- but wouldn't that just be my fault for being a total loser?
I apologize that the playful intent of my post was lost. I'll try using more discretion in the future.
And by the way, if you do want to continue the facetiousness, feel free to respond, "No, no, it's not that. It's just I didn't understand what programming skills you could have been referring to." ; )
DID YOU KNOW?
In ten years, Deep Loner will have the highest-rated television comedy series in the history of highly rated television comedy series. He'll also be selling shares of ownership of the Brooklyn Bridge in New York City.)
Joined: 11/27/2004
Posts: 688
Location: WA State, USA
@Age Machine
#cycle 1
#end
:touch
Do you wish to become 10 years older at the expense of 100 gems?
!yes;Yes
!no;No
#end
:yes
#take gems 100 no
#give age 10
#zap touch
You are now ten years older.
#end
:no
#zap touch
#zap touch
$GAME OVER
:no
#endgame
#zap no
#no
:touch
The machine appears to be broken.
EDIT: Changed some stuff.
Nach wrote:
I also used to wake up every morning, open my curtains, and see the twin towers. And then one day, wasn't able to anymore, I'll never forget that.
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
wtf... I can't predict what I'll have for dinner in a few hours!
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself.
It rests on the conviction that you — by your choices, effort and actions — have made yourself into the
kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional
functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success."
- Onkar Ghate
Bisqwit wrote: