Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Outcast and Jedi Academy Editing Forum → please help me with JO scripting
please help me with JO scripting
2008-04-03, 10:44 PM #1
I am trying to make a simple script to make a stormtrooper walk to 2 different waypoint navgoals. using GTKradiant I have a u shaped hallway and on one side is the first navgoal and the other is on the opposite side, each has a name. I have also placed waypoints [I could have the name wrong but they are yellow squares] at each corner and liked the waypoints together. I then gave the stormtrooper a spawnscript key with the name of the script.

my behavEd program is somewhat messed up...
I think it has something to do with the fact that I bought the best of pc game pack, which means it's on a DVD instead of CD and possibly a different format.

anyway, my script has a REM, then a task with a SET_NAVGOAL with the name of the navgoal and the same thing again only with the other navgoal's name [nav_1 and nav_2]. this did not work so I put a walk_only command from the list before the first task, as I do not have an option to select SET_WALKING from the pull down box list. that script did not work either. am I doing my scripting wrong [this is my first script] or is my program just really messed up?

the other thing I have a question about is how to set custom objectives and how to make a level end. if anyone is willing to link a tutorial or explain to me how to do this it would be greatly appreciated.
"I'm just a simple man trying to make my way in the galaxy."
-Jango Fett
2008-04-04, 11:13 AM #2
Hmm. I think you should do a very simple script just to see if nothing is messed up with the game or your scripting tools. How about give a NPC a different weapon or modify his health?
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2008-04-07, 9:25 PM #3
I made a cutscene script and it worked. I'm not sure what I'm doing wrong with the waypoint script.
"I'm just a simple man trying to make my way in the galaxy."
-Jango Fett
2008-04-08, 12:28 AM #4
hmm. If anything, check the small details. For example, check if your waypoints aren't in the ground (entities that share the same space as a brush sometimes don't register.) Waypoints that are too high in the air will cause NPCs trouble when using them.

Also make sure no waypoint entites share the same name (which is easily avoided with the lines connecting them).

Instead of forcing the NPC to head toward navgoals, try setting them just wander the waypoints aimlessly ("BS_WANDER"). That way, you can see if the NPCs are actually finding the waypoints as a test.

Good luck!
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2008-04-10, 4:13 PM #5
ummm, how do you make a BS_WANDER ? is it an option on the pull down list. or is it something else? I think I found the problem with my program, the site I first downloaded it from was missing the source folder. but I think I have everything now. I just can't figure out this one script...
"I'm just a simple man trying to make my way in the galaxy."
-Jango Fett
2008-04-14, 6:49 AM #6
Lassev, the Mighty God of Scripting, wrote an excellent NPC navgoaling tutorial here. Although Lassev claims this tutorial to be imperfect (uh?), it more than enough for most mappers (well, at least it is for me...). Have fun.
"You look like you need a monkey..."
2008-04-20, 4:49 PM #7
Originally posted by Larry McBruce:
Lassev, the Mighty God of Scripting, wrote an excellent NPC navgoaling tutorial here. Although Lassev claims this tutorial to be imperfect (uh?), it more than enough for most mappers (well, at least it is for me...). Have fun.


I have faith the mighty God of Scripting will come back to show us, scripting mortals, the light. Some day.
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%

↑ Up to the top!