Jump to content

Home

Spawning Question


Dak Drexl

Recommended Posts

So I know how to spawn characters around a module via scripting, but I have a different kind of question. What if I want to spawn something in a different module? Is this possible?

 

For example I am *anywhere*, lets say Tatooine. When a certain dlg is triggered I want someone to spawn on Manaan. Is this possible?

 

I want to make this similar to the sidequests of the party members is k1, where no matter where you are someone runs up to your ship and says hello. I know that and what I said above are sort of different, but if anyone can answer any of these questions it would be really helpful :)

Link to comment
Share on other sites

You need to have a boolean (true or false statement, by default is false) turn true when you need the character to spawn. Then the next time you enter the module (I think you want Manaan) you make an on spawn script (you may need to add to an already existing on spawn script) the syntax so that your character is spawned and then the boolean is turned to false (so that it won't happen every time you enter the module).

Link to comment
Share on other sites

The thing that I did with the mod I'm working on is to attach the spawn script to a dialogue that is triggered in that module for sure. For example, the first module you visit on Manaan (can't recall the exact name now), there is the selkath who is collecting money for arriving with the ship. If you include the script in there it has to be triggered when the PC visits Manaan. This method is as simple as it could be... Hope that helps...

 

Fastmaniac

Link to comment
Share on other sites

Easy method granted and would be quit practical but what should happen if the PC already visited Manaan? I find the best method for such an operation is to use the global booleans. They are very easy to learn. The module creation tutorial I made goes into the use of numbers and booleans. Making the videos was my first experience with numbers but they are incredibly easy to learn.

Link to comment
Share on other sites

Like with the genohardan. You get the datapad after completing tat. You go to Manaan and you can talk to a sepical one guy, or if you talk to him when you find out about you identity; you cango to tat and fight him so it would spawn the group there, something like that? It has both scripts and the stuff har talks about.

Link to comment
Share on other sites

Easy method granted and would be quit practical but what should happen if the PC already visited Manaan?

 

Well, I can remember that you have to pay 100 Credits EACH TIME you visit Manaan so the dialogue is triggered everytime you land there... Global Booleans is safer of course. But I think it's more difficult to edit an OnEnter or OnSpawn script than to include it in a conversation.

Link to comment
Share on other sites

I didn't mean they were difficult to write. I just meant it's easier to include the script in a dialogue and to leave the more important files alone (I don't like messing with the game;)). I was just giving another option for Dak Drexl to try.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...