-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I create a few NPCs that will fight alongside the player? #6
Comments
Say you have a monster called "friendly monster", put this in the game start script:
|
Thank you! |
Okay, so I tried this, but now the ‘friendly monster’ I created will only attack himself. I wonder if I’m leaving something out. What do I need to add to make him attack the other monsters in the room (instead of me or himself) ?
One more thing: How do I get it to stop saying that the NPC "has no target to attack" when they are just walking around and not in a battle?
Thanks so much – I am now addicted to Quest!
From: ThePix [mailto:[email protected]]
Sent: Monday, September 24, 2018 7:38 AM
To: ThePix/quest <[email protected]>
Cc: Jonathan Himes <[email protected]>; Author <[email protected]>
Subject: Re: [ThePix/quest] How do I create a few NPCs that will fight alongside the player? (#6)
Say you have a monster called "friendly monster", put this in the game start script:
do(friendly monster, "settodefend")
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ApT6m0lQAT_uy_-maFO4buce2y8ZiVkVks5ueNIrgaJpZM4W2AL1>.
|
Okay, so I tried this, but now the ‘friendly monster’ I created will only attack himself. I wonder if I’m leaving something out. What do I need to add to make him attack the other monsters in the room (instead of himself) ? I have tried looking through the code, but I can't figure it out. What file and what chunk of code would be crucial for this to work out? |
Try this |
I want to have 4 NPCs or so who will fight along with the player in my game. Is there a way to create a Monster with CombatLib who will befriend the player and fight with him? I have looked up this set of instructions...
...but I can't figure out how or where to access this list (game.friends). I did Ctrl-F and searched for it in the code view of my game, and also in CombatLib, but I just don't see where I should plug it in.
The text was updated successfully, but these errors were encountered: