Skip to content

Range Scripts.

NK1990NK1990 Member Posts: 76
Range(LastSeenBy(Myself),15) Does this code mean 15 feet away from myself ?.

IF
Range(NearestEnemyOf(Myself),10)
Range(SecondNearestEnemyOf(Myself),10)
Range(ThirdNearestEnemyOf(Myself),10)
Range(FourthNearestEnemyOf(Myself),10) // If I do like this would the player with the active script have to have 4 enemies in range of 10 feet of himself, before he did whatever action I choose ?. I would write it for teleportfield cst on himself if he got surrounded by multiple enemies.

Comments

  • sarevok57sarevok57 Member Posts: 6,002
    i dont know if it's "feet" per se i think its more like "spacing" for example single handed melee weapons have a range of 1 while 2 handed melee weapons have a range of 2, so 15 would be 7.5 times further away than whatever 2 is

    with that script for as far as i can understand, it means that the character would need to have 4 of the nearest enemies with 10 "range" of itself before whatever would come next and fire off, so to answer your question; yes
  • NK1990NK1990 Member Posts: 76
    sarevok57 wrote: »
    i dont know if it's "feet" per se i think its more like "spacing" for example single handed melee weapons have a range of 1 while 2 handed melee weapons have a range of 2, so 15 would be 7.5 times further away than whatever 2 is

    with that script for as far as i can understand, it means that the character would need to have 4 of the nearest enemies with 10 "range" of itself before whatever would come next and fire off, so to answer your question; yes

    Thanks for the reply. I will try to test the ranges then on party npc's.
  • NK1990NK1990 Member Posts: 76
    Range(object),12) That fits with spell detail of 40 feet so value 11 for teleport field and sphere of chaos
  • NK1990NK1990 Member Posts: 76
    and it's many feet displaced per tick it goes up and down 4 was almost beside player
  • NK1990NK1990 Member Posts: 76
    Range(Nearest([GOODCUTOFF.0.0.0.0.SUMMONED]),12)
    Range(SecondNearest([GOODCUTOFF.0.0.0.0.SUMMONED]),12)

    And if did like this it recognized party summons as well
  • NK1990NK1990 Member Posts: 76
    40 feet devide by 12 gives 3.33 so it should be 3.33 feet per tick.
  • kjeronkjeron Member Posts: 2,368
    The Range() trigger measures in feet: Range(Object,15) is within 15 feet.

    Unmodded Teleport Field / Sphere of Chaos teleport targets up to 16 feet.
  • NK1990NK1990 Member Posts: 76
    kjeron wrote: »
    The Range() trigger measures in feet: Range(Object,15) is within 15 feet.

    Unmodded Teleport Field / Sphere of Chaos teleport targets up to 16 feet.

    not from what I saw
  • NK1990NK1990 Member Posts: 76
    kjeron wrote: »
    The Range() trigger measures in feet: Range(Object,15) is within 15 feet.

    Unmodded Teleport Field / Sphere of Chaos teleport targets up to 16 feet.

    but yeah I can see it area of effect range 15 but right on the edge of the sphere the script activated, and it is set on 12.
Sign In or Register to comment.