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.
How do you make a password event?

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 82
How do you make a password event???? Nooblet here...  :'(

**
Rep: +0/-0Level 82
Also can someone get me a credits script

****
Rep:
Level 83
Here you are.....

Code: [Select]
#==============================================================================
# ¦ Scene_Credits
#------------------------------------------------------------------------------
# Scrolls the credits you make below. Runs By calling...
# $scene = Scene_Credits.new
# Give credit to: Unknown, Emily_Konichi, AvatarMonkeyKirby, Mr_Wiggles
#==============================================================================

#-----------------------------------------------------------------------------
# CONFIG TXT - What does the text look like?
#-----------------------------------------------------------------------------
CREDITS_FONT    = ["Times New Roman"]
CREDITS_SIZE    = 24
CREDITS_OUTLINE = Color.new(  0,  0,127, 255) # (Red, Green, Blue, Gray)
CREDITS_SHADOW  = Color.new(  0,  0,  0, 100)
CREDITS_FILL    = Color.new(255,255,255, 255)
CREDITS_SPEED   = 2                   # Use A Number Between 1.0 - 5.0
CREDITS_SKIP    = true                # Can skip credits
SKIP_KEY        = Input::C       # Skip credits key
#-----------------------------------------------------------------------------
# CONFIG MUSIC - Play BG music?
#-----------------------------------------------------------------------------
BG_MUSIC = "012-Theme01"    # "CASE SENSITVIE" Name of BMG to play
VOLUME   = 100              # Volume of BGM 1 - 100
PITCH    = 50               # Pitch of BGM 1 - 100 (1=slow, 50=norm, 100=fast)
#-----------------------------------------------------------------------------
# CONFIG VIEW PORT - Where do you want the credits to play?
#-----------------------------------------------------------------------------
VIEW_X = 0        # X pos of Credits box  Default = 0
VIEW_Y = 0        # Y pos of Credits box  Default = 0
VIEW_H = 480      # Hight of Credits box  Default = 480
VIEW_W = 640      # Width of Credits box  Default = 640
#-----------------------------------------------------------------------------
class Scene_Credits
#------------------------------------------------------------------------------
# ADD Credits BELLOW This    ***** DON'T CHANGE | CREDIT=<<_END_ | *****
#------------------------------------------------------------------------------
# NOTE: It auto centers all txt
CREDIT=<<_END_

THE END

Credit those people at the top!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We Hope you Enjoyed Playing The Game!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




_END_
#------------------------------------------------------------------------------
# ADD Credits ABOVE This     **** DON'T CHANGE | _END_ | *****
#------------------------------------------------------------------------------
def main
#==============================================================================
# Animated Background Setup
#==============================================================================
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
#------------------------------------------------------------------------------
# Edit this to the title screen(s) you wish to show in the background.
# They do repeat. if you don't want any use [""] "files must be located
# in Title Chache. Pictures added must folow this format...
# ["pic 1", "pic 2", "pic 3"]
#------------------------------------------------------------------------------
@backgroundList = [""]
#------------------------------------------------------------------------------
# Number of game frames per background picture.   "20 = 1 sec"
@backgroundGameFrameCount = 0
#------------------------------------------------------------------------------
#                         =================
#                           END EDIT AREA
#                         =================
#==============================================================================

# Load BG Images
@backgroundG_BFrameCount = 3.4
@sprite.bitmap = RPG::Cache.title(@backgroundList[0])
# Play BGM
Audio.bgm_play("Audio/BGM/" + BG_MUSIC, VOLUME, PITCH)

#---------------------------
#   Creates Credits txt
#---------------------------

credit_lines = CREDIT.split(/\n/)
credit_bitmap = Bitmap.new(640,32 * credit_lines.size)
credit_lines.each_index do |i|
line = credit_lines[i]
credit_bitmap.font.name = CREDITS_FONT
credit_bitmap.font.size = CREDITS_SIZE
x = 0
credit_bitmap.font.color = CREDITS_OUTLINE
credit_bitmap.draw_text(0 + 1,i * 32 + 1,640,32,line,1)
credit_bitmap.draw_text(0 - 1,i * 32 + 1,640,32,line,1)
credit_bitmap.draw_text(0 + 1,i * 32 - 1,640,32,line,1)
credit_bitmap.draw_text(0 - 1,i * 32 - 1,640,32,line,1)
credit_bitmap.font.color = CREDITS_SHADOW
credit_bitmap.draw_text(0,i * 32 + 8,640,32,line,1)
credit_bitmap.font.color = CREDITS_FILL
credit_bitmap.draw_text(0,i * 32,640,32,line,1)
end
#------------------------------------------------------------------------------
@credit_sprite = Sprite.new(Viewport.new(VIEW_X,VIEW_Y,VIEW_W,VIEW_H))
#------------------------------------------------------------------------------
@credit_sprite.bitmap = credit_bitmap
@credit_sprite.z = 9998   #9998
@credit_sprite.oy = -430  #-430
@frame_index = 0          # 0
@last_flag = false        # false

#--------
# Setup
#--------

#Stops all audio but background music.
Audio.me_stop
Audio.bgs_stop
Audio.se_stop

Graphics.transition

loop do

Graphics.update
Input.update


update
if $scene != self
break
end
end
Graphics.freeze
@sprite.dispose
@credit_sprite.dispose
end

#----------------------------------------------------------------------------
# Update
#----------------------------------------------------------------------------
def update
@backgroundGameFrameCount = @backgroundGameFrameCount + 1
if @backgroundGameFrameCount >= @backgroundG_BFrameCount
@backgroundGameFrameCount = 0
# Add current background frame to the end
@backgroundList = @backgroundList << @backgroundList[0]
# and drop it from the first position
@backgroundList.delete_at(0)
@sprite.bitmap = RPG::Cache.title(@backgroundList[0])
end
#-----------------------------------------------------------------------------
# Skip Key pressed
#-----------------------------------------------------------------------------
if CREDITS_SKIP and Input.trigger?(SKIP_KEY)
     Graphics.freeze
     Graphics.transition(40)
     Audio.bgm_fade(20)
     $scene = Scene_Title.new
   end
#-----------------------------------------------------------------------------  
# Credits Reached ending point
#-----------------------------------------------------------------------------
def last?
    if @frame_index > (@credit_sprite.bitmap.height + 430) #430
    Graphics.freeze
    Graphics.transition(60)
    Audio.bgm_fade(40)
#-----------------------------------------------------------------------------
# Return to Title
#-----------------------------------------------------------------------------
    $scene = Scene_Title.new
      return true
    end
      return false
    end
#-----------------------------------------------------------------------------
return if last?
@credit_sprite.oy += CREDITS_SPEED
@frame_index += CREDITS_SPEED
end
end


as for a password just do an event just like this one here:

create a character "any and name it what ever in this exsample its called Password"

name imput prossesing == character "password"

conditional branch: [Password]  is name *your password* applied
if its right do this
else
if its wrong do this
branch end
« Last Edit: December 16, 2009, 12:39:18 AM by Mr_Wiggles »
Spoiler for:
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com


**
Rep: +0/-0Level 82

****
Rep:
Level 83
No problem...
Spoiler for:
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com


***
Rep:
Level 84
It's human to misdo
Id add a function to empty the "password" characters name so that the next time u are using the password, the old password wont be shown.

I'll edit this post as soon as im not at my phone.

EDIT: Here is the part I'd add:

@>Change Actor Name: [Password], ''

This line sets the "Password" character to empty.
Without this, the old password will be shown if you are using this on more than one place.
« Last Edit: December 16, 2009, 03:31:56 PM by stripe103 »

****
Rep:
Level 83
@ stripe - ill let you tell him cause you said you where latter and id feel like and A$* if i told him....
Spoiler for:
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com


***
Rep:
Level 84
It's human to misdo
Sorry if I don't understand... "latter"?

But thanx either way