Neverwinter Nights > Script Request
boot script
Daniel1975:
may be anyone can help me with this problem:
In our ante mod I made an item called "Teleporter".
Once activated it starts a conversation where you can choose where you want to teleport yourself or the chosen target.
So far it works fine but there is one problem:
When two or more players activate the item at the same time it seems the teleport script doesn't know which player to teleport and so it happens that another player is teleported.
For example:
Someone activates the teleporter and a dialog window appears for him. I do the same. But while I'm still choosing where to go the other player already made his descission but instead of him I get teleported.
I don't know how to change that.
Is there a way to prevent that from happening? :huh:
BzK:
Daniel1975:
Sounds to me like you're both getting the same dialog, I don't know if that helps but I've seen it happen :P
And Mel, Elessar is looking to have a conversation pop up so he can choose a person to BAN or whatever (that's a little backwards, would be easier just to use an item on the person then choose what to do with them like DM wands :P)
P.S. What's with "BAN" getting caps when you type it in lowercase?
Daniel1975:
--- Quote ---Daniel1975:
Sounds to me like you're both getting the same dialog, I don't know if that helps but I've seen it happen :P
[snapback]13916[/snapback]
--- End quote ---
hmmm so you mean that everyone who gets a teleporter and activates it must get his own dialog window?
Tea-cup:
--- Quote ---
--- Quote ---Daniel1975:
Sounds to me like you're both getting the same dialog, I don't know if that helps but I've seen it happen :P
[snapback]13916[/snapback]
--- End quote ---
hmmm so you mean that everyone who gets a teleporter and activates it must get his own dialog window?
[snapback]13917[/snapback]
--- End quote ---
No, you're useing the same variables or whatever. How you get the target? You do it whit a localint on the module or area? Or you apply variables on the players themself? Or something else?
I use a weird way to get my targets whit my dmwand. But once the target is targetted the target may even leave, the ban will still apply because everything is stored in strings on the itemactivator.
Best way is to post a small piece of code where you think it goes wrong. Posting thinks of my dmwand is pointless because it's working whit a database and selfmade includes. Just will confuse.
-Mel
Elessar Telrunya:
--- Quote ---
--- Quote ---can someone give me a way to target something for a script in a conversation?
-Lord Elessar
[snapback]13899[/snapback]
--- End quote ---
You mean the speaker, or a person that's the target of a item that makes the conv start? Something like a dm wand?
-Mel
[snapback]13900[/snapback]
--- End quote ---
yes bzk should know since i asked him to help me test earlier. I'm looking for a way so that when I click on the choice the conversation closes and a target button pops up like with spells and i click the person i wish to target.
-Lord Elessar
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version