1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Make NPC damage player

Discussion in 'Skript' started by Cripacx, Feb 1, 2020.

Thread Status:
Not open for further replies.
  1. Cripacx

    Cripacx Member

    Joined:
    Oct 24, 2019
    Messages:
    2
    Likes Received:
    0
    Hello, can someone help me, how to make the npc to damage a player? I testet this already:
    (make|force) [the] (npc|citizen) %citizen% [to] (target|attack|damage|follow) %entity% [[with] [aggressive [state]] %-boolean%]
    I testet for example this:
    command /test:
    trigger:
    make npc "Test" to attack "%player%"
    or
    command /test:
    trigger:
    make npc "Test" to attack player

    Both doesn't work... Can someone help?
     
  2. Govindas

    Govindas Active Member

    Joined:
    Feb 5, 2017
    Messages:
    79
    Likes Received:
    5
    you need to use the ID of citizen, not the name
     
  3. Cripacx

    Cripacx Member

    Joined:
    Oct 24, 2019
    Messages:
    2
    Likes Received:
    0
    Okay, how should i do this?
    command /test:
    trigger:
    make npc 1 attack player
    Is it so right?
     
  4. Govindas

    Govindas Active Member

    Joined:
    Feb 5, 2017
    Messages:
    79
    Likes Received:
    5
    you should check the syntaxes of addon if that's right, I don't work with citizens in skript, just know that they use IDs
     
  5. Legora

    Legora Member

    Joined:
    Feb 5, 2020
    Messages:
    4
    Likes Received:
    0
    Assuming you are using "skript-npc" (https://forums.skunity.com/resources/skript-npc.444/)
    You can use this pattern :
    make %citizen% (attack / follow) %LivingEntity%"

    I also found "attack (<entity>|...) (target:<entity>/cancel)" from denizen but the website and updates don't make me want to use it.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...