![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: a hard one |
sweetguy |
![]() hi i have spent alot of time just thinking how i would ever do this so i decied to ask you guys. what i want to do is make a character with a mind of his own. in other words say i have a rouge. the player is in a room with the rouge. then after a while the rouge moves to another room then after another while he goes to another room. how i got it set up is a have a battlefeild and when you kill one guy i move him to another room that the player can't go then after a lil while he comes out all by him self. have you ever played a text role playing game on the net??? it's like that. hope you under stand what i'm trying to say. |
MaDbRiT |
![]() >> hi i have spent alot of time just thinking how i would ever do this so i decied to ask you guys. what i want to do is make a character with a mind of his own << I'm doing this in my game (should it EVER see the light of day!) and I'm using what I call a 'script' because I want my NPC to follow a particular course of action, rather than move randomly. Basically my character performs a (LONG!) sequence of actions until the player stops her. The code is a bit covoluted and there's far too much of it to post here, but if you e-mail me and explain exactly what effect you are trying to achieve, my code (or a variation of it) might suit your purposes. Al |
MaDbRiT |
![]() Further to my posting earlier.. I've cobbled up a small. runnable demonstration of an NPC that appears and wanders around the game world at random. It only uses proper exits though - no 'impossible' movements :-) In my demo the NPC is a cat which is mooching around a house.. if you feed it it goes away for a while and can't be found, eventually it turns up and starts mooching again... when it's hungry! LOL I have a pet cat - it works this way, hence the choice of subject. If the code sounds like it might be useful to you it's now downloadable from my Tips and Tricks page. Al |
Computer Whizz |
![]() Where's your web-site? it may be interesting to see a different site about Quest! Hey Alex, maybe you should start up a Quest ring! like a Microsoft Agent ring ect.. :) --CW |
Alex |
![]() A Quest ring would be somewhat pointless, as apart from the main website I'm aware of only two websites that are related to Quest, and one of those isn't a hugely useful site really (well, it was incomplete last time I checked, which was a fair while ago to be honest). The other site is of course Alan's... still, maybe one day in the far future.
|