RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
mount script

0 Members and 1 Guest are viewing this topic.

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
help me! i changed a simple dash script into a mount script but now i need to make it so that you can get better mounts and such! ok, so ill put the events and the script up. first of all, heres the script that goes in at the bottom of game_player(im telling you because its important info so it can  be modded further)
Code: [Select]

#==============================================================================
# Game_Player Dash
#==============================================================================
class Game_Player
alias xrxs25_update update
def update
  unless moving? or $game_system.map_interpreter.running? or
         @move_route_forcing or $game_temp.message_window_showing
    if $game_switches[908] == true
      @move_speed = 5
    else
      @move_speed = 4
    end
  end
  xrxs25_update
end
end


ok, so heres the common events:

1st one is activated by using an item. it governs getting on the mount

<>message: ride mount?
<>show choices: yes/no
<>yes handler
<>switch [908 mount]=on
<>tint screen(alll the way dark, 20 frames)
<>change hero graphic: lead char to lead char riding mount
<>tint screen(back to normal, 20 frames)
<>
<>no/handler
<>

2nd one starts by switch 908 being on, btw these r all paralel processes this governs getting off the mount

<>conditional branch: A is pushed
<>tint screen(all the way black @20 frames)
<>change hero graphic back to hero w/out mount
<>tint screen(back to normal @20 frames)
<>switch 908: mount= off

and thats that. now for the better mount:


1st one is activated by using a better item. it governs getting on the mount

<>message: ride mount?
<>show choices: yes/no
<>yes handler
<>switch [909 mount]=on
<>tint screen(alll the way dark, 20 frames)
<>change hero graphic: lead char to lead char riding better mount
<>tint screen(back to normal, 20 frames)
<>
<>no/handler
<>

2nd one starts by switch 909 being on, btw these r all paralel processes this governs getting off the mount

<>conditional branch: A is pushed
<>tint screen(all the way black @20 frames)
<>change hero graphic back to hero w/out mount
<>tint screen(back to normal @20 frames)
<>switch 909: mount= off


ok. so i think i may need another script that looks like this:

Code: [Select]

#==============================================================================
# Game_Player Dash
#==============================================================================
class Game_Player
alias xrxs25_update update
def update
  unless moving? or $game_system.map_interpreter.running? or
         @move_route_forcing or $game_temp.message_window_showing
    if $game_switches[909] == true
      @move_speed = 5
    else
      @move_speed = 4
    end
  end
  xrxs25_update
end
end


i tried having two scripts but the game told me the stack lvl is too deep. so, if neone could help me thx, id really appreciate it because this will be really cool in my game if i can get it fixed! thankyou!

***
Rep: +0/-0Level 90
uh yea.... make love not war
would this work with abs... and if so i would like to use this.

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
i dont know, but i need the problem solved.

dont tell me you didnt read the problem part *shmack* ungghhh... im trying to make it so that i can have different types of mounts! ah well...

***
Rep: +0/-0Level 90
uh yea.... make love not war
i would help but i am terrible at scripting...lol.

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
I just figured it out (i think)

you don't need 2 scripts, it says your stack lvl is too deep, b/c you're replacing the update twice.

delete those two, and replace it with this.

Code: [Select]
#==============================================================================
# Game_Player Dash
#==============================================================================
class Game_Player
alias xrxs25_update update
def update
  unless moving? or $game_system.map_interpreter.running? or
         @move_route_forcing or $game_temp.message_window_showing
    if $game_switches[908] == true and $game_switches[909] != true
      @move_speed = 6
    else
       if $game_switches[909] == true and $game_switches[908] != true
           @move_speed = 5
       else
           @move_speed = 4
       end
    end
  end
  xrxs25_update
end
end


edit: this way, when switch 908 is on and 909 is off, you'll go fastest, when 908 is off and 909 is on, you'll go slower, and if both are off, you'll go slowest.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
*bump*

so err... does it work???
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
i havent tried it...but do you know how fast speed 6 is?


ok, anyways, im trying it now...


(5 minutes later)

hooray! thanks tsuno! (hey, now could u work on the party change ring script?)

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
kk, try this. (first you have to change the name of that icon to partychangeicon7fg)

replace the ring menu with this

[code]#===================================================
# â–  Ring Menu - Show Player Location - Release #1 (Edited By Dubealex)
#===================================================
# For more infos and update, visit:
# rmxp.dubealex.com [OR] X-RPG V2 Forum
#
# Original Ring Menu by: 和希 (From XRXS)
# Original Edit and Fix by: Maki
# Show Player Location Version by: Dubealex
#
# You can customize this script at line #35 - Have fun !!
# If you want to show more stuff, its easy to do, just ask, and I will release
# new version of this edited script !
#
# alex@dubealex.com
#===================================================
#7/26/05-
#      Edited by Tsunokiette
#===================================================

#===================================================
# â–¼ CLASS Scene_Menu Begins
#===================================================

class Scene_Menu
#--------------------------------------------------------------------------
#
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
syntax error on line 241...

[code]
#

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
whoops, it seems I fogot to add something... replace

[code]when 4
  $game_system.se_play($data_system.decision_se)
  $scene =
when 4 #
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
damnit. theres still a syntax error on line 241 :( anymore ideas?

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
hmmm... try adding an extra end after this

Code: [Select]
if Input.press?(Input::DOWN) or Input.press?(Input::RIGHT)
$game_system.se_play($data_system.cursor_se)
@command_window.setup_move_move(Window_RingMenu::MODE_MOVER)
return
end
end


may not work, but one of the only things I can think of.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
nvm i fixed it :D i just had to delete the first "if 4" thingie

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
Quote from: Lord Dante
nvm i fixed it :D i just had to delete the first "if 4" thingie



err that wont work... if you replaced the section I said, then  there would only be 1 when 4...

when you got rid of the when 4, well, you'll see...
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
nope, tried it. it works. :^^:

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
:O_o: try all the options... the when 4 and when 5 say what to do if the option is selected...
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*******
I am epic, you are not.
Rep:
Level 93
Defender of Justice
nope, theys all workzes. thanks 4 da script!

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
well okay then, as long as it works lol.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

***
Rep: +0/-0Level 89
forgive me for
1: bribg up this topic
and, 2: being such a noob.
But, how do I use this script thingy? I could realy use it but how do I likn it with all the events and crapa? step by step instructions. plz? thank you.
I'LL EAT YOUR BABYS!!!

Copella
Check out my website for details about my upcoming game