Primary Zelda Hacking
April 21, 2014, 09:37:46 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: There is now an official Primary Zelda Hacking Press!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Taking/giving rupees from/to Link?  (Read 201 times)
BigTarantula99
Jr. Member
**
Offline Offline

Posts: 55


Revamper of ZOLE 4 for ZOLE 4.5


View Profile
« on: December 14, 2013, 02:26:43 AM »

I haven't found any tutorials on how to give or take a certain rupee amount from Link in a ZOSE script.  I have a few questions.
1.  What is a command in ZOSE that recognizes a certain tile that Link is standing on?  Say, if I wanted a script to stop and wait for Link to stand on the tile at (X = 5) (Y = 3), how would I program this in ZOSE?
2.  When Link stands on this tile (when the script continues), I want the game to subtract 50 rupees from his wallet.  What would I enter into ZOSE for this?

Thanks for your help.
Logged

Proud part of the IRCs #smwc and #ZOLE as BigT.

CURRENTLY HACKING:  MISICS (OoA)
Completion Status: 12%

-BigT
Fatories
LALE Creator
Administrator
Full Member
*****
Offline Offline

Posts: 223



View Profile
« Reply #1 on: December 14, 2013, 04:55:16 AM »

The memory address CC99 is the YX  coordinates that Link is currently at so by performing a checkmemory CC99 35 the script should wait until Link is at that location.
As for the second question I do not know of a memory address that will subtract some amount X from the rupee total. The addresses C6AD and C6AE are the total rupees the player has so you could change it to a set amount, but that isn't very useful.
Logged

The force of a true man can penetrate all. Nothing is safe.
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« Reply #2 on: December 14, 2013, 08:46:06 AM »

Well, it turns out there's no magic address that lets you take away X rupees from the player. I mean, there's an assembly procedure that takes them away, but it's part of the shopkeeper's interaction assembly. The only way you'd be able to do it is to write your own interaction and assembly, which would be quite the pain unfortunately. If you're interested, the code where the game takes away rupees based on what item you're buying is at 09:440A.
Logged
BigTarantula99
Jr. Member
**
Offline Offline

Posts: 55


Revamper of ZOLE 4 for ZOLE 4.5


View Profile
« Reply #3 on: December 14, 2013, 06:42:54 PM »

Oh well; I just did something else instead.  At least I finally know how to check when Link is standing on a certain tile.  That was bugging me.
I have two other off-topic questions that seemed to me to be too little to put in a separate topic.

1.  Do you know what the sound effect ID number is that's played when a puff is created?  That sound that sounds like something is vanishing?
2.  Is it possible to create a puff outside of the interaction's coordinates (at another tile location)?  What would that look like in ZOSE?
Logged

Proud part of the IRCs #smwc and #ZOLE as BigT.

CURRENTLY HACKING:  MISICS (OoA)
Completion Status: 12%

-BigT
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« Reply #4 on: December 14, 2013, 08:54:20 PM »

1. http://zeldahacking.net/forum/index.php?topic=153.0

2. Setposition xx yy
    createpuff
Logged
BigTarantula99
Jr. Member
**
Offline Offline

Posts: 55


Revamper of ZOLE 4 for ZOLE 4.5


View Profile
« Reply #5 on: December 14, 2013, 09:15:50 PM »

Thanks.  I actually looked in the sound effect list and couldn't find it.  I thought you might know.
I'll check again anyway.
Logged

Proud part of the IRCs #smwc and #ZOLE as BigT.

CURRENTLY HACKING:  MISICS (OoA)
Completion Status: 12%

-BigT
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« Reply #6 on: December 15, 2013, 01:02:56 AM »

Ah, sorry. Hmm... Maybe it's below 4D. I checked the list and I can't find anything. Odd.
Logged
BigTarantula99
Jr. Member
**
Offline Offline

Posts: 55


Revamper of ZOLE 4 for ZOLE 4.5


View Profile
« Reply #7 on: December 15, 2013, 02:51:22 AM »

Yeah, me neither.  I'll just use the puffs.

My hack is getting off to a great start Smiley  Thanks guys!
Logged

Proud part of the IRCs #smwc and #ZOLE as BigT.

CURRENTLY HACKING:  MISICS (OoA)
Completion Status: 12%

-BigT
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!