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

0 Members and 1 Guest are viewing this topic.

File Pepsi.chr not found

  • Elite Member
  • *****
  • Posts: 819
  • Re҉.gre̷̮͖̠͚t.
  • Awards 3 years on site 1 year on site Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners
    • View Profile
    • Awards
  • Xbox: Error: File doesn'
  • PSN: Error: File doesn't exist
  • Steam: Error: File doesn't exist
[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?
Whenever I see old topics/posts I've made here, my heart races and I regret life.  I wish I could erase this part of my life...the TM forums part of my life.  What awful memories I have here.  I want to forget every single post I've ever made but it's way too hard to.

casual onion

  • Legendary Member
  • *****
  • Posts: 1823
  • I sometimes eat onions.
  • Awards 3 years on site 2 years on site 1 year on site
    • View Profile
    • YouTube Channel
    • Awards
  • Xbox: casual onion
  • Steam: 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
| Thanks for reading my post. It was great, wasn't it? |

| I build Economy RPG Maps, here i my current one. Hazzah! |

| Feel Free to send me a message on here on the TM Discord (casual onion#3563) |

| Enjoy the next post! |

Dryym

  • Supreme Member
  • *****
  • Posts: 4331
  • 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 3 years on site Site art contributions/TPs in-game/Contest winners 1 year on site
    • 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

File Pepsi.chr not found

  • Elite Member
  • *****
  • Posts: 819
  • Re҉.gre̷̮͖̠͚t.
  • Awards 3 years on site 1 year on site Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners
    • View Profile
    • Awards
  • Xbox: Error: File doesn'
  • PSN: Error: File doesn't exist
  • Steam: Error: File doesn't exist
Re: How do I make a run script?
« Reply #3 on: June 10, 2017, 06:12:06 PM »
Thanks guys!
Whenever I see old topics/posts I've made here, my heart races and I regret life.  I wish I could erase this part of my life...the TM forums part of my life.  What awful memories I have here.  I want to forget every single post I've ever made but it's way too hard to.

casual onion

  • Legendary Member
  • *****
  • Posts: 1823
  • I sometimes eat onions.
  • Awards 3 years on site 2 years on site 1 year on site
    • View Profile
    • YouTube Channel
    • Awards
  • Xbox: casual onion
  • Steam: 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.
| Thanks for reading my post. It was great, wasn't it? |

| I build Economy RPG Maps, here i my current one. Hazzah! |

| Feel Free to send me a message on here on the TM Discord (casual onion#3563) |

| Enjoy the next post! |