Author Topic: [Game] Question/idea  (Read 652 times)

0 Members and 1 Guest are viewing this topic.

.ok

  • Supreme Member
  • *****
  • Posts: 2203
  • Awards Site art contributions/TPs in-game/Contest winners 4 years on site+1000 posts Members who have unlocked the robotic avatar Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site+600 posts 2 years on site+300 posts Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site+100 posts
    • View Profile
    • Awards
[Game] Question/idea
« on: November 18, 2016, 04:21:19 PM »
Didn't know where to post this being its both an idea if not done yet, but also a question

Is it possible to alter a mobs speed with the new mob system?If not then would it be possible/a good idea for us to be able to change the speed they move?




AlienizdPixel

  • Tester
  • Supreme Member
  • *****
  • Posts: 2574
  • Hallo
  • Awards 3 years on site+600 posts Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: A1ienizdPixe1
  • Steam: Alienizd
Re: Question/idea
« Reply #1 on: November 18, 2016, 04:28:03 PM »
You will be able to change an NPC's movement speed.
-Alionz

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6496
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: Question/idea
« Reply #2 on: November 18, 2016, 08:11:25 PM »
Yes it's possible. All nodes involving movement from one place to another have a velocity modifier which is applied to the NPCs standard move speed. A value of 1 keeps the speed the same as default, a value < 1 slows them down, a value > 1 speeds them up.

e.g. a value if 0.25 will mean they will move at 25% of their normal speed. A value of 1.5 means they will move 1.5 times faster than normal.

Platinum Dryym

  • Supreme Member
  • *****
  • Posts: 4140
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts 3 years on site+600 posts Site art contributions/TPs in-game/Contest winners 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: dryym
Re: Question/idea
« Reply #3 on: November 18, 2016, 09:49:27 PM »
Yes it's possible. All nodes involving movement from one place to another have a velocity modifier which is applied to the NPCs standard move speed. A value of 1 keeps the speed the same as default, a value < 1 slows them down, a value > 1 speeds them up.

e.g. a value if 0.25 will mean they will move at 25% of their normal speed. A value of 1.5 means they will move 1.5 times faster than normal.

2 questions.

1: What is the default speed?
2: Can we have a way to retrieve zone speed values so that we can apply them to NPCs via vars?

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6496
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: Question/idea
« Reply #4 on: November 18, 2016, 11:53:51 PM »
Yes it's possible. All nodes involving movement from one place to another have a velocity modifier which is applied to the NPCs standard move speed. A value of 1 keeps the speed the same as default, a value < 1 slows them down, a value > 1 speeds them up.

e.g. a value if 0.25 will mean they will move at 25% of their normal speed. A value of 1.5 means they will move 1.5 times faster than normal.

2 questions.

1: What is the default speed?
2: Can we have a way to retrieve zone speed values so that we can apply them to NPCs via vars?
1. The default speed varies depending on the NPC type.
2. NPC behaviours don't support vars. I'm trying to think of a way to add that.

.ok

  • Supreme Member
  • *****
  • Posts: 2203
  • Awards Site art contributions/TPs in-game/Contest winners 4 years on site+1000 posts Members who have unlocked the robotic avatar Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site+600 posts 2 years on site+300 posts Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site+100 posts
    • View Profile
    • Awards
Re: Question/idea
« Reply #5 on: November 19, 2016, 02:46:58 AM »
Would something like
Var [feet]
Var [meters] work?
Or something that detects or determine the number of blocks the mob moves at _ amount of time

Sorry if that's completely off,I don't really know anything about var scripting




Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6496
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: Question/idea
« Reply #6 on: November 19, 2016, 03:55:19 AM »
Would something like
Var [feet]
Var [meters] work?
Or something that detects or determine the number of blocks the mob moves at _ amount of time

Sorry if that's completely off,I don't really know anything about var scripting
We have this built in var: [Vel:x|y|z] - The players current X, Y or Z velocity.

But a built in [Speed:] var which holds the default speed of the entity, not relative to an axis, and not dependent on whether or not the entity is currently moving, would probably be more useful in this context.

Platinum Dryym

  • Supreme Member
  • *****
  • Posts: 4140
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts 3 years on site+600 posts Site art contributions/TPs in-game/Contest winners 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: dryym
Re: Question/idea
« Reply #7 on: November 19, 2016, 11:17:17 AM »
Yes it's possible. All nodes involving movement from one place to another have a velocity modifier which is applied to the NPCs standard move speed. A value of 1 keeps the speed the same as default, a value < 1 slows them down, a value > 1 speeds them up.

e.g. a value if 0.25 will mean they will move at 25% of their normal speed. A value of 1.5 means they will move 1.5 times faster than normal.

2 questions.

1: What is the default speed?
2: Can we have a way to retrieve zone speed values so that we can apply them to NPCs via vars?
1. The default speed varies depending on the NPC type.
2. NPC behaviours don't support vars. I'm trying to think of a way to add that.

NPC behaviours support script integration, Right? What about allowing an "out:vars" node to be used to calculate vars using the scripting interface.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym