harark1 Posted June 14, 2011 Share Posted June 14, 2011 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. Link to comment Share on other sites More sharing options...
JebusJM Posted June 14, 2011 Share Posted June 14, 2011 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. Link to comment Share on other sites More sharing options...
harark1 Posted June 14, 2011 Author Share Posted June 14, 2011 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. Link to comment Share on other sites More sharing options...
TimBob12 Posted June 14, 2011 Share Posted June 14, 2011 You can set up triggers which run that same script. http://www.lucasforums.com/showthread.php?t=145870 might help. Link to comment Share on other sites More sharing options...
harark1 Posted June 17, 2011 Author Share Posted June 17, 2011 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. Link to comment Share on other sites More sharing options...
Dak Drexl Posted June 17, 2011 Share Posted June 17, 2011 Did you put the right name for your module? It has to be whatever the .MOD file is named. Link to comment Share on other sites More sharing options...
harark1 Posted June 17, 2011 Author Share Posted June 17, 2011 Yes, it is ntpt. Link to comment Share on other sites More sharing options...
Dak Drexl Posted June 17, 2011 Share Posted June 17, 2011 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. Link to comment Share on other sites More sharing options...
harark1 Posted June 17, 2011 Author Share Posted June 17, 2011 It's working, but not spawning on the waypoint. Atleast it works. Link to comment Share on other sites More sharing options...
Istorian Posted June 17, 2011 Share Posted June 17, 2011 Every string between a comma must be included in ""...So the script is actually: void main () { StartNewModule("ntpt", "w_wntpt"); } That should work! Link to comment Share on other sites More sharing options...
JebusJM Posted June 18, 2011 Share Posted June 18, 2011 Any idea on how to remove the Waypoint part of the script so you just warp to the default spawn point on a module? Link to comment Share on other sites More sharing options...
Dak Drexl Posted June 18, 2011 Share Posted June 18, 2011 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"); } Link to comment Share on other sites More sharing options...
JebusJM Posted June 18, 2011 Share Posted June 18, 2011 Thanks yet again, Dak. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.