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.
Navi script

0 Members and 1 Guest are viewing this topic.

******
Rep:
Level 92
One by one, the penguins steal my sanity...
Okay here's what i need. In The Legend of Zelda: Ocarina of Time, your
fairy, Navi, will give you help when you need it or when you lock on to an
enemy.

Can anyone get/make me a script that gives the player a hint when a
button is pressed? That would help me out A LOT with my game. Thanks.
DEATH: Master of Time, your life is at it's end! Mwahahahaha!
MOT: Whatever, dude *throws crumpled piece of paper at Death and runs away*
DEATH:....?

****
Rep:
Level 91
Am I still cool?
With RM2K3, you can do this easily by key imput processing. But that was a major feature they shouldn't have taken out for RMXP.
SO how about just do it with many switches. In the area where you get the hint, put an event on every square where you would get the hint, make it on key press, and then when its done giving the hint, turn on the switch. And if you want it to make a sound, you would need to make about 2 more switches so that you don't hear "Hey" in an anoying voice on every place you step.If you want navi to fly around you, ask someone else, or put it in the charset.


Interested in playing these complete games and checking out more? Go to my website!

******
Rep:
Level 92
One by one, the penguins steal my sanity...
Making that many events on one map would make the whole game run
EXTREMELY slow. Like...slower than dial-up slow. LOL

But that thought did cross my mind.
DEATH: Master of Time, your life is at it's end! Mwahahahaha!
MOT: Whatever, dude *throws crumpled piece of paper at Death and runs away*
DEATH:....?

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
This is for if the shift key is pressed down on the map, you'll have to get someone else to do the battle thing for you, I'm supposed to be taking notes right now lol.

Insert this with all the other window scripts.

Code: [Select]
class Window_Navi_Tip < Window_Base
attr_accessor :tip
def initialize
super(0,400,640,80)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = 'Times New Roman'
self.contents.font.size = 22
@tip = '' unless $tip.nil? != true and $tip != ''
@tip = $tip unless @tip.nil? != true
give_tip
end
def give_tip
self.contents.clear
self.contents.font.color = normal_color
w = self.contents.width
h = self.contents.height
self.contents.draw_text(0,0,w,h,@tip,0)
wait
end
def wait
loop do
self.update
if Input.press?(Input::C)
break
end
end
self.dispose
end
def update
Graphics.update
end
end


then add this in the update definition of Scene_Map

Code: [Select]
if Input.press?(Input::A)
navi_tip = Window_Navi_Tip.new
end


The tip is automaticly ' ' unless you make it something else, to change the tip, simply use

Code: [Select]
$tip = 'text here'


If that doesn't work, notify me, give me the error, etc.

EDIT: forgot to say that you just press the space bar/enter/etc. to get it to go away again
"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."

Lol, I remember I tried doing this once with events.
Except you could set the fairy on Attack, Defense, and Support mode.

There was some bug in it though.. I can't remember.

******
Rep:
Level 92
One by one, the penguins steal my sanity...
Interesting idea, ArkBennet.

Tsuno, nothing happens when I push the button.  :|
DEATH: Master of Time, your life is at it's end! Mwahahahaha!
MOT: Whatever, dude *throws crumpled piece of paper at Death and runs away*
DEATH:....?

****
Rep:
Level 91
Am I still cool?
Quote from: Master_of_Time
Making that many events on one map would make the whole game run
EXTREMELY slow. Like...slower than <a style='text-decoration: none; border-bottom: 3px double;' href="http://www.qklinkserver.com/lm/rtl3.asp?si=92&k=dial%20up&st=1" onmouseover="window.status='Search for: dial-up'; self.ql_skeyphrase='dial%20up'; if(window.event) self.ql_sevent=window.event.srcElement; self.ql_timeout = setTimeout('ql_doMouseOver(1)', 1000); self.ql_isOverLink=true; return true;" onclick="if(self.ql_timeout) clearTimeout(self.ql_timeout); self.ql_isOverTip = false; ql_closeiframe(); self.ql_skeyphrase='dial%20up'; window.status='Search for: dial-up';return true;" onmouseout="window.status=''; if(self.ql_timeout) clearTimeout(self.ql_timeout); self.ql_isOverTip = false; setTimeout('ql_closeiframe()', 1500); ">dial-up</a> slow. LOL

But that thought did cross my mind.


Only if you get a bjillion hints in every map.

Dangit, why does that keep happening when I try to quote?!


Interested in playing these complete games and checking out more? Go to my website!

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
Quote from: Master_of_Time
Interesting idea, ArkBennet.

Tsuno, nothing happens when I push the button.  :|


Are you pressing shift?
"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:
Level 92
One by one, the penguins steal my sanity...
Yes I am.

I set the hint to say "Hello!" just to test it, but nothing happens.  :|
DEATH: Master of Time, your life is at it's end! Mwahahahaha!
MOT: Whatever, dude *throws crumpled piece of paper at Death and runs away*
DEATH:....?

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
Quote from: Master_of_Time
Yes I am.

I set the hint to say "Hello!" just to test it, but nothing happens.  :|


I'll test it tomorrow (or at least try to).

I'm going to a solo/small ensemble competition from 6:30 Am - 5:00 Pm tomorrow, and I think my grandparents are picking me up.

EDIT: correction, my dad is picking me up, so sometime next week I'll fix it
"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
I apologize for the delay.

Just tweaked, tested, and fixed.

Put this with the other window_scripts.

Code: [Select]
class Window_Navi_Tip < Window_Base
   attr_accessor   :tip
   def initialize
      super(0,400,640,80)
      self.contents = Bitmap.new(width - 32, height - 32)
      self.contents.font.name = 'Times New Roman'
      self.contents.font.size = 22
      @tip = '' unless $tip.nil? != true and $tip != ''
      @tip = $tip unless @tip.nil? != true
      give_tip
   end
   def give_tip
      self.contents.clear
      self.contents.font.color = normal_color
      w = self.contents.width
      h = self.contents.height
      self.contents.draw_text(0,0,w,h,@tip,0)
      wait
   end
   def wait
      loop do
         self.update
         if Input.press?(Input::A)
            break
         end
      end
      self.dispose
   end
   def update
      Graphics.update
      Input.update
   end
end


then add this in the update definition of Scene_Map


Code: [Select]
if Input.press?(Input::A)
   navi_tip = Window_Navi_Tip.new
end



The tip is automaticly ' ' unless you make it something else, to change the tip, simply use

Code: [Select]
$tip = 'text here'


Press shift to see the tip, and press shift again to make it go away.
"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:
Level 92
One by one, the penguins steal my sanity...
Thanks, Tsuno.  :D
DEATH: Master of Time, your life is at it's end! Mwahahahaha!
MOT: Whatever, dude *throws crumpled piece of paper at Death and runs away*
DEATH:....?

***
Rep:
Level 89
Call it too lazy to get a good avatar.
K'ya, I was thinking I might want to use this too, yet this is the second script I would be fidling with, where evectly do I go about putting these?
Sir Acer is back. This time, he has nothing. Its a fresh start.
____

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
Quote from: Aus Ace Leader
K'ya, I was thinking I might want to use this too, yet this is the second script I would be fidling with, where evectly do I go about putting these?


The window script itself can just be put above main, but for sake of orginization, it's recommended to insert it with all the other window scripts.

For the part that's needed in Scene_Map's update method, just find.

def update

in the  script Scene_Map

and past the lines bellow it.

You can change the tip through the script event command.



You can change what button is needed to close the window (which is recomended because the window accepts input quickly and will probably be closed and opened again, etc. if you press the button too long and it's the same used to both open and close it *inhales*)

Just find this part in the window script itself.

Code: [Select]
        if Input.press?(Input::A)
            break
         end


and replace the A with another letter -

A = shift
C = space, enter, etc.

there's others, but it would make sense to just choose one or the other.
"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."