The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Complicated Script help.

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old March 22nd, 2016 (5:25 PM). Edited March 26th, 2016 by DoctorCow.
DoctorCow's Avatar
DoctorCow DoctorCow is offline
 
Join Date: Mar 2016
Gender: Male
Posts: 49
I need help with a script that is abit complex.
So I want this script between 2 people. (A) Old Man and (B) Farmer.
Here is the basics of what I want:
The script for the old man:
When you talk to the old man, he will ask if he can have a cheri berry (specific type)
When you click yes
He will check to see if you have a cheri berry and if you do, he will take the berry then say this, "Thanks for the cheri berry, here have an HM (cut)". After he talks, he gives you HM01.
If you click yes and do not have a cheri berry, then he would say something like, "You do not have a cheri berry".
When you click no
He will say, "Oh well then".

When you talk to the old man AFTER he gives you the HM, he would say, "Thanks for the berry young man"
The script for the farmer:
When you talk to the farmer, he would say, "Man I have a lot of berries, you want one?" [Yes or No]
When you click yes
The farmer will give you a cheri berry
When you click no
The farmer would say, "Alrighty then".

When you talk to the farmer AFTER he gives you the cheri berry, he would say, "My farming business is going great".


Well that is what I want in my rom hack so if anyone can help me turn that into a script, that would be great!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 23rd, 2016 (12:41 AM).
Logan's Avatar
Logan Logan is offline
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 28
Gender: Male
Nature: Sassy
Posts: 10,414
That's pretty easy script actually, you'll need to read a scripting tutorial as nobody will just make the script for you. The commands I suggest you look at are:

checkflag
setflag
checkitem
giveitem
takeitem (I think that's right, I can't remember 100%)
msgbox MSG_YESNO
msgbox MSG_NORMAL
compare LASTRESULT
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 23rd, 2016 (8:05 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
Quote:
Originally Posted by hashtag View Post
takeitem (I think that's right, I can't remember 100%)
In XSE it's removeitem.
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old March 23rd, 2016 (11:19 AM).
DoctorCow's Avatar
DoctorCow DoctorCow is offline
 
Join Date: Mar 2016
Gender: Male
Posts: 49
Thanks I'll read over a few tutorials.
__________________
Current Project: Pokemon DARK
Version: 0.00034
Next: Work on the 2nd, 3rd, and 4th town.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:08 AM.