 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Laven Atries Starmaster
Joined: 21 Mar 2003 Posts: 11
|
Posted: Wed Apr 09, 2003 1:24 am Post subject: NPC movement |
|
|
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 |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Wed Apr 09, 2003 1:54 am Post subject: |
|
|
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 |
|
 |
Laven Atries Starmaster
Joined: 21 Mar 2003 Posts: 11
|
Posted: Wed Apr 09, 2003 5:24 pm Post subject: |
|
|
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 |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Wed Apr 09, 2003 5:31 pm Post subject: |
|
|
No problem. I learned that one myself the hard way (read: weeks of trying to figure out why it wasn't working ).
By the way, for some additional information...pushable NPCs won't move if their speed is 0. Damn speed, screwing with us. _________________
 |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
Posted: Sun Apr 13, 2003 8:32 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|