Techno 5.0 Posted February 12, 2009 Author Share Posted February 12, 2009 Okay.for awhile now ive been coming up with monster ideas and what not.what i need is a script that has the npc to wait in one spot until the player comes in a certian range of tilesand then the npc moves toward the player to attack it.but if that player moves out of the certain range then the npc will stop in its tracks and just stay there Link to comment Share on other sites More sharing options...
Warconn Posted February 12, 2009 Share Posted February 12, 2009 hmm cant you just make the NPC sprite invisable, and when it attacks you, its sprite changes to what ever…i dont no about the other part, like the moving towards the player once its within range, might require some source Link to comment Share on other sites More sharing options...
Techno 5.0 Posted February 12, 2009 Author Share Posted February 12, 2009 @Warconn:> hmm cant you just make the NPC sprite invisable, and when it attacks you, its sprite changes to what ever…well the monster im making is called "Dengu spider"This spider is pretty much hidden because it blends in with the grass because it has Grass on its back. Link to comment Share on other sites More sharing options...
Warconn Posted February 12, 2009 Share Posted February 12, 2009 o i got yea, i am using my method for like a rough NPC, it turns visible when it attacks you Link to comment Share on other sites More sharing options...
Techno 5.0 Posted February 12, 2009 Author Share Posted February 12, 2009 @Warconn:> o i got yea, i am using my method for like a rough NPC, it turns visible when it attacks youthats cool.couldnt u just use the whole change sprite method? Link to comment Share on other sites More sharing options...
Warconn Posted February 12, 2009 Share Posted February 12, 2009 yea, thats what i am saying, when the NPC attacks you, it changed the sprite from the blank sprite, to the one that you want the sprite to look like, like the spider Link to comment Share on other sites More sharing options...
Techno 5.0 Posted February 12, 2009 Author Share Posted February 12, 2009 @Warconn:> yea, thats what i am saying, when the NPC attacks you, it changed the sprite from the blank sprite, to the one that you want the sprite to look like, like the spideryeah but not exactly how i saw it.it be like thissay your walking along a path and there is a patch of grass (thats pretty big) thats right in the middle of the path.you think nothing of itso you walked right up to it and the spider pounces out and attacks youand poisons you.thats pretty much how i want it Link to comment Share on other sites More sharing options...
Gwen Posted February 12, 2009 Share Posted February 12, 2009 its been a while but could you spawn an npc through script… so when they step on the tile it "appears" and is aggressive... but when you step off the tile it "disappears"? Link to comment Share on other sites More sharing options...
Techno 5.0 Posted February 12, 2009 Author Share Posted February 12, 2009 @Gwendalin:> its been a while but could you spawn an npc through script… so when they step on the tile it "appears" and is aggressive... but when you step off the tile it "disappears"?im not exactly sure…that would work but you would have alot of scripted tiles Link to comment Share on other sites More sharing options...
Gwen Posted February 12, 2009 Share Posted February 12, 2009 well only around the area of sight… technically it would be the same as a block or somehting.... Link to comment Share on other sites More sharing options...
Anna Comnena Posted February 12, 2009 Share Posted February 12, 2009 Yeah you would need 2 scripts, one to turn "on" the NPC then one to turn it "off". Only thing is keeping track of the NPC index to make sure the correct one gets removed. Link to comment Share on other sites More sharing options...
Techno 5.0 Posted February 12, 2009 Author Share Posted February 12, 2009 @Anna:> Yeah you would need 2 scripts, one to turn "on" the NPC then one to turn it "off". Only thing is keeping track of the NPC index to make sure the correct one gets removed.yeah that be hard…my best chance would be source Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now