Create a game with player 2 commanded by artificial intelligence

Steven1985

Active member
Hi,
with OpenBOR I would like to create a game, with player 2 being commanded by artificial intelligence and special moves are made in a simple way without any half-moon or similar ones. The Legacy Manual of OpenBOR Wiki is not clear. Can you tell me how I can do step by step? Thank you.
 
Cant help you with AI but for simple commands openbor accepts any direction with the attack or any other button but the timing has to be tight to get it to work i recommend you look into keyscripts for better results.
 
Just making the second player an NPC will get you AI control. Then it's a matter of balancing. This is very important. Since NPCs use the same AI routines as enemies do you need to treat them with the same caution.

Make them too powerful and they'll hog all the action. I made this mistake with Joe's dog Yamato from Shinobi. I had him just too dang fast, and when play-testing I never even got to do anything - the dog just ran around and murdered everybody! Tone them down too much and they'll be a liability. That's the hardest part, a lot more difficult then getting them working in the game.

DC
 
The Legacy Manual of OpenBOR Wiki is not clear

How it is not clear? It says to set the type to NPC. You have to change just one thing and its done...it can't be easier than that  :)

Even to customize his actions are very easy  - just configure the range in the attacks and boom, done again.

You want it to grab items? Just give it a get animation. You want it to jump to higher platforms? Give it a jump  animation and so on...
 
O Ilusionista said:
The Legacy Manual of OpenBOR Wiki is not clear

How it is not clear? It says to set the type to NPC. You have to change just one thing and its done...it can't be easier than that  :)

Even to customize his actions are very easy  - just configure the range in the attacks and boom, done again.

You want it to grab items? Just give it a get animation. You want it to jump to higher platforms? Give it a jump  animation and so on...

I have tried to do like you wrote but when I go to select as player 2 the character where I had written, within its text, to type npc, the system doesn't allow  me to  select.
 
You can select the NPC this way. In the select screen, you will be able to pick only entities set as PLAYER.
You have to spawn the NPC on another way - either on the stage, or on the character.

You can spawn it using
subentity {name} / custentity {name}
Then using "summonframe"

or by script.
 
O Ilusionista said:
You can select the NPC this way. In the select screen, you will be able to pick only entities set as PLAYER.
You have to spawn the NPC on another way - either on the stage, or on the character.

You can spawn it using
subentity {name} / custentity {name}
Then using "summonframe"

or by script.

I know nothing of programming could send me a video where you show the 2 options?
 
All this info is stated at the manual, I suggest you to read it fully before start coding
http://dcemulation.org/?title=OpenBORManual

subentity {name} / custentity {name}

~{name} is the name of spawned entity declared in MODELS.txt. That means the entity must be loaded in MODELS.txt before you can use this.
~Or, if you don't want the spawned entity always be loaded, you can use 'load' command in Entity's header data above so when this entity is loaded, the spawned entity will loaded too.
~This is used together with 'spawnframe' or 'summonframe'.
~{name} determines what/which entity will be spawned or summoned with spawnframe or summonframe.
 
O Ilusionista said:
All this info is stated at the manual, I suggest you to read it fully before start coding
http://dcemulation.org/?title=OpenBORManual

subentity {name} / custentity {name}

~{name} is the name of spawned entity declared in MODELS.txt. That means the entity must be loaded in MODELS.txt before you can use this.
~Or, if you don't want the spawned entity always be loaded, you can use 'load' command in Entity's header data above so when this entity is loaded, the spawned entity will loaded too.
~This is used together with 'spawnframe' or 'summonframe'.
~{name} determines what/which entity will be spawned or summoned with spawnframe or summonframe.

Could you put for me these two features ? Even If I read all tutorial but I know how to do. Which language of programming is used in OpenBOR? Thank you.
 
Hi Steve download what you asking for is already in openbor and works great, its very simple to do.
I have this in my fightin spirit mod, just pick "story mode with cpu"
Its basically just normal player character type changed to NPC type and cpu AI takes over all movement.Its very cool.
https://drive.google.com/open?id=1gmeKHbLvLi10dtvXh6wvCNhxXRTDa3ko
So you want to kinda control 2 characters at the same time and use second character to do special moves on your command while controlling first character normally ?
 
bWWd said:
Hi Steve download what you asking for is already in openbor and works great, its very simple to do.
I have this in my fightin spirit mod, just pick "story mode with cpu"
Its basically just normal player character type changed to NPC type and cpu AI takes over all movement.Its very cool.
https://drive.google.com/open?id=1gmeKHbLvLi10dtvXh6wvCNhxXRTDa3ko
So you want to kinda control 2 characters at the same time and use second character to do special moves on your command while controlling first character normally ?

Hi, I don't want to control 2 characters at the same time. The second character has to be commanded by A. I.. I want the comands are simple without to do a special move with halfmoon but pressing a button. What are the languages of programming used in OpenBOR?
 
Take a look:
Its basically just normal player character type changed to NPC type and cpu AI takes over all movement.I

Read in the manual for NPC http://dcemulation.org/index.php5?title=OpenBORManual#Basic_Stats
 
bWWd said:
Hi Steve download what you asking for is already in openbor and works great, its very simple to do.
I have this in my fightin spirit mod, just pick "story mode with cpu"
Its basically just normal player character type changed to NPC type and cpu AI takes over all movement.Its very cool.
https://drive.google.com/open?id=1gmeKHbLvLi10dtvXh6wvCNhxXRTDa3ko
So you want to kinda control 2 characters at the same time and use second character to do special moves on your command while controlling first character normally ?

I downloaded this file how can I play ?
 
Back
Top Bottom