Author Topic: [Scripts] How do I make a run script?  (Read 422 times)

0 Members and 1 Guest are viewing this topic.

mm2woodman

  • Elite Member
  • *****
  • Posts: 805
  • yo, woodman here
  • Awards 1 year on site+100 posts Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners
    • View Profile
    • Awards
  • Xbox: woodman321
  • PSN: woodman321
  • Steam: woodman321
[Scripts] How do I make a run script?
« on: June 10, 2017, 03:49:29 PM »
I want to make a script that allows the player to walk faster when they press a specified button.  How do I do that?
ROTM of December 24th, 1988.mid
nice

casual onion

  • Legendary Member
  • *****
  • Posts: 1671
  • Part time onion, Part time Michael Buble fan
  • Awards 2 years on site+300 posts 1 year on site+100 posts
    • View Profile
    • YouTube Channel
    • Awards
  • Xbox: casual onion
Re: How do I make a run script?
« Reply #1 on: June 10, 2017, 04:40:01 PM »
Hello,

Easiest way is to create a zone around the required area (or map) and alter the speed using the menus.

Ta-dah
/onion Inspirational Quotes /onion

casual onion [23|Mar 09:59 PM]:   If you don't succeed, try, try and give up.

PWRBTTN [31|Mar 01:14 AM]:   It's okay, not all of us can be comedy geniuses like Casual Opinion.

Trub's Unisex Holiday Name [12|Nov 07:28 PM]:
You look like Casual Onion.

Platinum Dryym

  • Supreme Member
  • *****
  • Posts: 4254
  • 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: How do I make a run script?
« Reply #2 on: June 10, 2017, 05:42:29 PM »
This script will provide the basic framework for a running script.

After you make this script, You can make another script which changes the player's speed stat using a button event. The simplest way to do this would be to set the value to a higher value for X amount of time before setting it back on a button press, However if you wanted to make use of the speed stat for other things like slowing the player down or whatever, You would need something more complex.

Hello,

Easiest way is to create a zone around the required area (or map) and alter the speed using the menus.

Ta-dah
That does not work on a player by player basis so it wouldn't really work for the OP's request.

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

mm2woodman

  • Elite Member
  • *****
  • Posts: 805
  • yo, woodman here
  • Awards 1 year on site+100 posts Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners
    • View Profile
    • Awards
  • Xbox: woodman321
  • PSN: woodman321
  • Steam: woodman321
Re: How do I make a run script?
« Reply #3 on: June 10, 2017, 06:12:06 PM »
Thanks guys!
ROTM of December 24th, 1988.mid
nice

casual onion

  • Legendary Member
  • *****
  • Posts: 1671
  • Part time onion, Part time Michael Buble fan
  • Awards 2 years on site+300 posts 1 year on site+100 posts
    • View Profile
    • YouTube Channel
    • Awards
  • Xbox: casual onion
Re: How do I make a run script?
« Reply #4 on: June 11, 2017, 02:13:39 PM »
Sorry Dryym, haven't been on TM for a while so had to use my expertise. Which appears to be lacking.
/onion Inspirational Quotes /onion

casual onion [23|Mar 09:59 PM]:   If you don't succeed, try, try and give up.

PWRBTTN [31|Mar 01:14 AM]:   It's okay, not all of us can be comedy geniuses like Casual Opinion.

Trub's Unisex Holiday Name [12|Nov 07:28 PM]:
You look like Casual Onion.