Jump to content


Creating reroll script for old text based game.


  • Please log in to reply
4 replies to this topic

#1 Joker

Joker
  • Guests

Posted 22 June 2012 - 05:02 AM

Before I begin, I'm a beginner level with scripts. I can make primitive scripts with Macro Express to automate some stuffs for me but that's about it. Anyway, I'm an old school text based gamer and wanted to get back to a game that I played 20 years ago. I remember back then there were scripts for the dial-up software but those doesn't even exist anymore. Anyway, this is what I'm trying to achieve.

-Search for specific text or a higher number then a set number (e.g. Intellect: 13)
For example(easier script)
1. Send text 'reroll(enter)'.
2. Look for 'Intellect: 20'
3. If condition not met, go back to first step.

For example(advanced script)
1. Set a number to find after Intellect: '20'
2. Send text 'reroll(enter)'.
3. Look for 'Intellect: 'number'
4. If the number is lower than the set number, go back to first step.

Of course intellect wont be the only stat that I want it to find. I would like it to match 5 conditions like
Intellect, Strength, etc, etc..

#2 janopn

janopn
  • Members
  • 691 posts

Posted 22 June 2012 - 12:18 PM

Hi!
I have this 2 questions:


-Search for specific text or a higher number then a set number


Search where?

1. Set a number to find after Intellect: '20'
2. Send text 'reroll(enter)'.
3. Look for 'Intellect: 'number'
4. If the number is lower than the set number, go back to first step.


So, we start with "20", and then, how we get the next number? You type it manually? (in that case, you will know if it's lower or higher, and step 4 would not have sense)

#3 TakeNoPrisoners

TakeNoPrisoners
  • Guests

Posted 22 June 2012 - 07:04 PM

Are you building a script for a GM or a player? Is it a character generation sheet or is it a running combat sheet? Is it for online use or is it for tabletop use? Do you intend this to be a GM screen type thing with saving rolls and such? Is the game a tabletop game like the old Tunnels and Trolls or Stormbringer or a computer based text game like the old Adventure series? Is it for solitaire play or for group play? So many questions -- so little time.

#4 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 10 July 2012 - 10:39 PM

I want to roll all 20s and over for my toon too.. lol
dont really get what your trying to do here.. are you making a RPG in AHK? if so, it has been done, and it is fun.
If you want a Random # Generater there are plunty in the fourms that do all sorts of options.. or use your Android phone and go to the play store and get a free GUI one to use on your phone.

#5 Xilibre

Xilibre
  • Members
  • 1 posts

Posted 23 July 2012 - 06:36 PM

I'm also interested in this, Joker. Maybe we can link up and share some ideas. Contact me if you still read the board.