Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-23-2001, 08:34 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Creatures

I am making a creature that follows the player around and I was experimenting with setimgpart and stuff. I know Merlin wont help if u dont have some of it done so here is what i did.

// NPC made by Lord Helmut (LAT)
if(playerenters){
setimgpart bomy.png,98,52,40,43;
}
if (playerdir==left) {
setimgpart bomy.png,48,99,48,43;
}
if (playerdir==right{
setimgpart bomy.png,140,98,44,44;
}

I was playing around and seeing how this stuff worked and i got the right thing for setimgpart and i was happy. But I want it so it watches a player and when they walk left it turns left and stays behind them. So like if a player x = 30 then this x is like 2 less. How would I make it work so it constantly did somthing? Because I want this to follow the player and each time there x increases the creatures increases by the same amount.

I used a bomy as a example but this is not the real one. It was just for experimenting.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
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 05:04 PM.


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