This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-01-23 20:29:25

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

I need... reasonable AI

I am making a Pokemon game because I felt a need to make an impressive project that ain't a doohickey. And, instead of making fakemon and facing the titanic tasks of spriting, moves, AI, etc., you'll be pleased to know that it only contains the Regi trio. I need somebody to:
- actually make AI for the opposing Regi
- also program the move selector at the beginning of your turn and
- possibly make a Sleep condition and stat-lowering condition (Superpower)
However, forget calculating damage as I can do that myself. So, if you decide to help me, you get:
- in the credits
- love-its on three of your selected projects
- advertising space in my sig (design the banner segment to make it fit my sig, or I can design it for you)

Oh, and here's the actual project before I forget:
Regi Battle (beta)


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#2 2010-01-23 20:34:57

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: I need... reasonable AI

I can do some of that.  Do you have a skeleton of the project, or have you started on it a bit, or do I have to start from (forgive me for ki'lling this joke) Scratch?

Last edited by Kileymeister (2010-01-23 20:50:04)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-01-23 21:13:09

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

Kileymeister wrote:

I can do some of that.  Do you have a skeleton of the project, or have you started on it a bit, or do I have to start from (forgive me for ki'lling this joke) Scratch?

I have a skeleton. Animations, sprites, and the title screen? All complete in the beta. I will also add move animations so don't worry.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#4 2010-01-24 00:28:59

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: I need... reasonable AI

I could do the ai, but no sleep or stats or move selectors. Can I do that keilymeister?

Offline

 

#5 2010-01-24 13:11:17

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

urhungry wrote:

I could do the ai, but no sleep or stats or move selectors. Can I do that keilymeister?

Yes, you can do that.

And I'm using smogon's damage calculator, so there should be a moveset selector.

Regice possible moves:
Ice Beam, Thunderbolt, Curse, Seismic Toss (all pokes @ level 100), Rest, Sleep Talk, Thunder Wave, Psych Up, Focus Punch, Counter, Explosion, Earthquake, Avalanche, and ThunderPunch.
Regirock possible moves:
Stone Edge, Rock Slide, Earthquake, Thunder Wave, Explosion, Curse, Sleep Talk, Rest, Ice Punch, Rock Polish, and Counter.
Registeel possible moves:
Thunder Wave, Earthquake, Seismic Toss, Iron Head, Shadow Claw, Explosion, Curse, Rest, Sleep Talk, Toxic (oops, need a poison condition as well), and Ice Punch.

Oh my, this is a large undertaking. Don't worry about stats (other than HP) as I have a damage calc.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#6 2010-01-24 13:26:00

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: I need... reasonable AI

Pokemon doesn't even have real AI. They just pick a move at random.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2010-01-24 13:36:10

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: I need... reasonable AI

archmage wrote:

Pokemon doesn't even have real AI. They just pick a move at random.

It's sort of real AI, it's just REALLY simple, that's all.

Last edited by Kileymeister (2010-01-24 13:36:25)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#8 2010-01-25 19:26:40

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

Basically, it chooses the most effective attacks (e.g. Seismic Toss used more often than Ice Beam against opposing Regice) slightly more often, but can still make dumb mistakes. Also handy would be difficulty levels to select, otherwise there's no point to have AI (or whatever), instead using randomness.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#9 2010-01-26 16:41:40

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

AUGH! I can only assume it's being worked on, but I have to bump this... because I'm having minor anxiety seizures right now and I MUST BUMP...


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#10 2010-01-26 18:46:56

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: I need... reasonable AI

im kinda having trouble with the ai. if someone else wants to do it, itll be faster

Offline

 

#11 2010-01-26 18:54:03

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

urhungry wrote:

im kinda having trouble with the ai. if someone else wants to do it, itll be faster

It doesn't have to be very intelligent, though.

An idea I had was a shiny only checkbox - check it, and all Pokemon are shiny.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#12 2010-01-26 20:18:41

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: I need... reasonable AI

Not a bad idea. I'm only having trouble with using multiple movesets.

Offline

 

#13 2010-01-26 20:29:50

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

urhungry wrote:

Not a bad idea. I'm only having trouble with using multiple movesets.

I could work on the shiny checkbox myself. Oh, and my vision was that you would see a list of moves, then you select them, and the movesets would be random for the opponent.

ONE OF THE FEW NON-RANDOM ASPECTS OF THE AI: Explosion is only used when the opponent's health is in the yellow/red.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#14 2010-01-28 21:10:51

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

Bumpier than a mountain road, this thread is.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#15 2010-01-30 23:04:26

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: I need... reasonable AI

...

I keep bumping this in the hopes that it isn't forgotten...


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#16 2010-06-04 07:53:05

azaquaz
Scratcher
Registered: 2010-01-09
Posts: 54

Re: I need... reasonable AI

I sort of have an idea for the AI. Make a variable for "attacks" and each turn set it to random 1 to 4 and if attacks = 1, do this, and if attacks = 2, do that, et cetera.

Last edited by azaquaz (2010-06-09 19:00:24)

Offline

 

Board footer