Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / How to write AI.. a "tutorial" [dbc]

Author
Message
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 25th Oct 2004 18:49 Edited at: 8th Apr 2005 21:24
this is a AI tutorial for a... hm, I dont know: AI move towards you and kick/hit you game. If you like it, then please feel free to use it. no need for credits, but would be nice if youd give some



hope you like it.

Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 6th Nov 2004 17:38
Are you sure this is for DBC, coz it won't work it says 'unrecognised parameter' at the bit where it checks if the AI can see you.... Bummer

"Well, if he dies it'll teach him not to do it again." - Me
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 8th Nov 2004 03:34 Edited at: 8th Nov 2004 03:35
I already noticed the error in the script.

its this:

if (_Distance#(id) < _View_Distance( id , 1)) AI_See_Me(id2)=1 then _State$(id)="goto"

at the tag: AI_See_Me(id2)=1. the ID2 should be just id.

change it into this:

if (_Distance#(id) < _View_Distance( id , 1)) AI_See_Me(id)=1 then _State$(id)="goto"
Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 12th Nov 2004 04:44
sweet!

"Well, if he dies it'll teach him not to do it again." - Me
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 13th Nov 2004 01:38
so, how is it? you like it?


This is a Map Editor ver 2 DEMO Out now! http://www.tiame.tk
Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 13th Nov 2004 04:28
yeah.....are u ment to kill the mad things tho? coz it takes forever , rly good AI on the whole anyway, *thumbs up*

"Well, if he dies it'll teach him not to do it again." - Me
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 13th Nov 2004 16:48
thanks

well, actually when you kill one there will come a new one.
so you can not klill all of them


This is a Map Editor ver 2 DEMO Out now! http://www.tiame.tk

Login to post a reply

Server time is: 2025-08-09 01:36:20
Your offset time is: 2025-08-09 01:36:20