Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-08-2007, 10:13 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Smarter AI?

Well, I know this is going to be a bit disappointing, but this script is not scripted in gs2, nor is it prepped for online use. Sorry, but I have access to neither of the two so I can't say much for that. But this isn't really for giving a complete free script, but to provide a base script for the idea. Everything here can easily be converted to gs2, and probably enhanced. And lastly, it's sort of buggy, not much, but not ready for public use. It does work most of the time though.

Anyways, I posted in the other thread suggesting that baddies track your movement. Well I thought I'd try it out and this is what I came up with. The baddy will act like a normal while you're in site, but if you run around an obstacle it will track your movement instead. I remember when I used to play I could easily get around the NPCs by just walking around a wall or such, this will follow you though, making them a bit smarter than just running around and stopping if they can't see you. He doesn't attack though, but that should be easy enough to add. Onwall detection isn't perfect, but eh... it does the job.

Anyways, like I said it's meant as a base to hopefully give ideas. Take it and make what you want of it, convert it, take ideas. Hopefully it'll help, because in the end, the concept is still the same. I can't say it's the most efficient or best script around(especially since gs1 is outdated), but I haven't scripted in ages.
Attached Files
File Type: nw smartbaddy1.nw (12.5 KB, 198 views)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.