Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

NPC movement

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Laven Atries
Starmaster




Joined: 21 Mar 2003
Posts: 11

PostPosted: Wed Apr 09, 2003 1:24 am    Post subject: NPC movement Reply with quote

This is a very simple thing that I can't seem to get to work. All I want is to get the camera to move up 2 tiles, display some text, then NPCs 1 and 2 to walk down 3 tiles. Then after they get there, you fight enemy formation 9, then display another text box. Everything works so far, except that the NPCs don't move. after the text, you just go straight to the fight. Here's the script:


include, plotscr.hsd
include, 2KNIGHTS.HSI

DEFINE SCRIPT (1,congarn,none)
script, congarn, begin
suspend player
pan camera (up,2,4)
show text box (31)
wait for text box
walk NPC (1,down,3)
walk NPC (2,down,3)
wait for npc (2)
fight formation (9)
show text box (34)
resume player
END

So what have I not done right?

PS: What is the difference between north, south, east, west, and up, down, right, left?

Thanks for your help.

-Laven Atries
_________________
Oro?
Back to top
View user's profile Send private message
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Wed Apr 09, 2003 1:54 am    Post subject: Reply with quote

Your problem may not have to do with your scripting, but rather the NPCs in CUSTOM itself. Check those NPCs you're using in the script. Are their speeds 0? If they are, that's the problem - an NPC will not move if its speed is 0, even if you force it to with a script.

There is no difference between using the cardinal directions and up, down, left, and right. They are the same constants with different names for friendliness.
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address
Laven Atries
Starmaster




Joined: 21 Mar 2003
Posts: 11

PostPosted: Wed Apr 09, 2003 5:24 pm    Post subject: Reply with quote

Hey thanks, that fixed my problem. I didn't think there was anything wrong with the script, and for once I was right! Yea! Now I can get back to work on the game! Thanks Aethereal!

-Laven Atries
_________________
Oro?
Back to top
View user's profile Send private message
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Wed Apr 09, 2003 5:31 pm    Post subject: Reply with quote

No problem. I learned that one myself the hard way (read: weeks of trying to figure out why it wasn't working Oookay...).

By the way, for some additional information...pushable NPCs won't move if their speed is 0. Raspberry! Damn speed, screwing with us.
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Sun Apr 13, 2003 8:32 pm    Post subject: Reply with quote

Yeah, like...that reminds me of the time I tried to figure out why I kept getting a game over after I left the inventory, an'then I found out that I just plain forgot to give the guy some HP. Yup! Little dumb things can screw up everything!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group