Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[CS:DE] to [EO] Conversation system V1.1


RyokuHasu
 Share

Recommended Posts

  • Replies 170
  • Created
  • Last Reply

Top Posters In This Topic

Hm. For some reason when I compile my source server-side I get argument not optional error at the line of code that calls the SpeechWindow sub.

```
If Npc(npcNum).Behaviour = NPC_BEHAVIOUR_FRIENDLY Then
                            If Npc(npcNum).Convo = False Then
                              >>>Call SpeechWindow(Attacker, Trim$(Npc(npcNum).AttackSay), npcNum)
                            Else
                                InitChat Attacker, mapNum, mapNpcNum
                            End If
```
Link to comment
Share on other sites

=_=… I just said THAT PART is optional

as for USING the system, you first make a convo, then you turn the NPC convo ON, then set the convo.

also Robin recently said you need a minimum of 1 HP on the NPC for it to be alive, so you can talk to it.

there isnt much more i can help you with.
Link to comment
Share on other sites

  • 3 weeks later...
Edit: wait nvm this only does it for bank and give it item and it just closes the chat if you move doesnt prevent movement of npc =p
What i did was add this to the bottom of modConv
```
Public Sub ClosePlayerChat(ByVal index As Long)
    ' exit the chat
    TempPlayer(index).inChatWith = 0
    TempPlayer(index).curChat = 0
    ' send chat update
    sendChat index
    ' send npc dir
    With MapNpc(TempPlayer(index).c_mapNum).NPC(TempPlayer(index).c_mapNpcNum)
        If .c_inChatWith = index Then
            .c_inChatWith = 0
            .Dir = .c_lastDir
            NpcDir TempPlayer(index).c_mapNum, TempPlayer(index).c_mapNpcNum, .Dir
        End If
    End With
    ' clear last of data
    TempPlayer(index).c_mapNpcNum = 0
    TempPlayer(index).c_mapNum = 0
    Exit Sub
End Sub

```Then i went to Select Case Conv(convNum).Conv(curChat).Event
under```
SendBank index
```
Add```
TempPlayer(index).InBank = True
```Then under```
SendInventory index
```Add```
ClosePlayerChat index
```
Link to comment
Share on other sites

  • 4 weeks later...
@Xakarii:

> Hm. For some reason when I compile my source server-side I get argument not optional error at the line of code that calls the SpeechWindow sub.
>
> ```
> If Npc(npcNum).Behaviour = NPC_BEHAVIOUR_FRIENDLY Then
>                             If Npc(npcNum).Convo = False Then
>                               >>>Call SpeechWindow(Attacker, Trim$(Npc(npcNum).AttackSay), npcNum)
>                             Else
>                                 InitChat Attacker, mapNum, mapNpcNum
>                             End If
> ```

@Ryoku:

> That is just an optional part of the tutorial, if you havent completed the NPC speech box tutorial, this is not needed, even if you have completed it, this part is still not needed.

Why did you put the code as "optional" if it doesnt even work right?

Edit: My bad, seems like its conflicting with the quest system in some way.
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...