You can use two variables to store the bullet counter.Ice Cream Jonsey wrote: Mon Sep 17, 2018 10:21 pmI imagine the game will overflow if you get, for instance, more than 32,767 bullets but I guess that can't be helped.
Cyberganked Jan 2018 dev log - flavor text
Moderator: Ice Cream Jonsey
- RealNC
- Posts: 2289
- Joined: Wed Mar 07, 2012 4:32 am
Re: Cyberganked Jan 2018 dev log - flavor text
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
The issue is that I am using Roody's fake prompt to store the key presses. And it just occurred to me that people may use a comma. I should account for that. :/
the dark and gritty...Ice Cream Jonsey!
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
I got it all working. I realize now that I pretty much reimplemented what Roody already had. It takes up to 5 keystrokes from the fake prompt. It checks to see how many digits there are. It subtracts 48 from the key entered to get a real number, according to the ASCII table. I then build the real number by going right to left in the array I store the numbers in, multiplying each digit by the correct amount, then we add 'em all together.
I also added some code to ensure that you can't say you want to transfer 1000 bullets when you have 2 and make 1000 show up in the other character's inventory. :)
It works and I am happy.
I also added some code to ensure that you can't say you want to transfer 1000 bullets when you have 2 and make 1000 show up in the other character's inventory. :)
It works and I am happy.
the dark and gritty...Ice Cream Jonsey!
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
Here is what Chemists can do - this is their class benefits per level, from 1 to 14.
Level 1: Chemical to give extra attacks. ephedrine.
Level 2: Chemical to heal. morphine.
Level 3: Chemical to increase defense. cyclobenzaprine
Level 4: Chemical to give extra speed. adrenaline.
Level 5: Chemical to remove hearing for focus. Extra attack, defense and speed together! lisinopril
Level 6: Chemical to increase max hit points temporarily. steroid.
Level 7: Chemical to heal a chipped character. bromelain.
Level 8: Explosion against a group of enemies. nitro.
Level 9: Explosion against a group of enemies, no saving throw. dynamite.
Level 10: Creates chemical to give a defense of 50 for 2 rounds, Aniracetam.
Level 11: Creates chemical boosting speed by 50. Ritalin
Level 12: Chemical to ensure that magician succeeds. Molly.
Level 13: Explosion against all groups of enemies. mercuryFulminate
Level 14: Explosion against all groups of enemies, no saving throws, Napalm.
Level 1: Chemical to give extra attacks. ephedrine.
Level 2: Chemical to heal. morphine.
Level 3: Chemical to increase defense. cyclobenzaprine
Level 4: Chemical to give extra speed. adrenaline.
Level 5: Chemical to remove hearing for focus. Extra attack, defense and speed together! lisinopril
Level 6: Chemical to increase max hit points temporarily. steroid.
Level 7: Chemical to heal a chipped character. bromelain.
Level 8: Explosion against a group of enemies. nitro.
Level 9: Explosion against a group of enemies, no saving throw. dynamite.
Level 10: Creates chemical to give a defense of 50 for 2 rounds, Aniracetam.
Level 11: Creates chemical boosting speed by 50. Ritalin
Level 12: Chemical to ensure that magician succeeds. Molly.
Level 13: Explosion against all groups of enemies. mercuryFulminate
Level 14: Explosion against all groups of enemies, no saving throws, Napalm.
the dark and gritty...Ice Cream Jonsey!
- Jizaboz
- Posts: 5420
- Joined: Tue Jan 31, 2012 2:00 pm
- Location: USA
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
This is awesome! I only have one question/request. Is Thorazine in the game yet? That would cancel out any “psycho” effects such as hallucinations, etc from spell/whatever effects.
(╯°□°)╯︵ ┻━┻
- Jizaboz
- Posts: 5420
- Joined: Tue Jan 31, 2012 2:00 pm
- Location: USA
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
There would also be a brief penalty period of slowness, less INT, and CHR due to side effects
(╯°□°)╯︵ ┻━┻
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
That's a great idea - I will make dynamite something that can be found in the game rather than made by chemists and put Thorazine in there. Thanks, Jiz!
the dark and gritty...Ice Cream Jonsey!
- The Happiness Engine
- Posts: 868
- Joined: Thu Aug 02, 2012 4:16 pm
Re: Cyberganked Jan 2018 dev log - flavor text
"Molly" as a street slang is out of flavor with the chemical names given to everything else. Dynamite/Napalm to a lesser degree.
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
I changed molly to ecstasy but I am afraid that I implied that "napalm" is something other than the thing we dropped on the Vietnamese. I do not mean that. I mean the gel-like substance that blows up nicely. For level 14! We can't have second-level chemists making it.
the dark and gritty...Ice Cream Jonsey!
- Tdarcos
- Posts: 9529
- Joined: Fri May 16, 2008 9:25 am
- Location: Arlington, Virginia
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
You can make synthetic napalm by soaking broken Styrofoam (like cups) in gasoline. When it turns to a "soup" or a "jelly-like" consistency, it's ready to use.
"Baby, I was afraid before
I'm not afraid, any more."
- Belinda Carlisle, Heaven Is A Place On Earth
I'm not afraid, any more."
- Belinda Carlisle, Heaven Is A Place On Earth
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
Perfect! I have styrofoam, and I feel I can get a hold of gasoline at the Mini Mart. This is HELPING. Tdarcos is HELPI-
BOOOOM!
ahhhhhhhh!!!!!!!!!!!!!!!
BOOOOM!
ahhhhhhhh!!!!!!!!!!!!!!!
the dark and gritty...Ice Cream Jonsey!
- Ice Cream Jonsey
- Posts: 30065
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Cyberganked Jan 2018 dev log - flavor text
This weekend, I got cyclobenzaprine, adrenaline, lisniopril and steroids working.
the dark and gritty...Ice Cream Jonsey!