How would I write a script that transfers the pc from one module to another?
Sorry that I ask about every single script I need to make I just get really confused by scripting.
void main() {
StartNewModule("module, waypoint");
}
Change the module and waypoint to what you want. Attach it to the dialog option "script that fires when spoken". But better off putting it at the end of the dialog.
Thanks this will help me with my planet. Now I will be able to stop using cheats and just talk to people to let me through.
You can set up triggers which run that same script.
http://www.lucasforums.com/showthread.php?t=145870)
might help.
Uh tried this script but when It fired the screen just went black and the module didn't load. Did I do something wrong with my script?
void main () {
StartNewModule("ntpt, w_wntpt");
}
Edit: Never mind, put in the wrong name for the waypoint.
Edit:Fixed that still doesn't work.
Did you put the right name for your module? It has to be whatever the .MOD file is named.
I think you're supposed to put the waypoint coords in the script.
void main() {
StartNewModule("modulename", "", "", "", "", "", "", "");
}
(Taken from Stoney's reply to a post)
Also if the standard spawn point of your module is an ok place to spawn, you could just take out the waypoint part. If it still doesn't work, you have a module problem and not a script problem.
It's working, but not spawning on the waypoint. Atleast it works.
Every string between a comma must be included in ""...So the script is actually:
void main ()
{
StartNewModule("ntpt", "w_wntpt");
}
That should work! ;)
Any idea on how to remove the Waypoint part of the script so you just warp to the default spawn point on a module?
Any idea on how to remove the Waypoint part of the script so you just warp to the default spawn point on a module?
It'll just look like this:
void main ()
{
StartNewModule ("Module");
}