The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Use Slash to cut Bush ?

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 July 17th, 2014 (10:52 AM).
leo.d.monkey's Avatar
leo.d.monkey leo.d.monkey is offline
 
Join Date: Apr 2014
Posts: 31
Hello there.

It's possible to change the CUT script so you can cut trees with SLASH and CUT ?

Don't know if you can add a second if there so you can use both moves.

Thanks : D
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 17th, 2014 (12:36 PM).
Danno's Avatar
Danno Danno is offline
Formerly Meowth, AKA InnerMobius
 
Join Date: Jan 2007
Location: New England
Age: 32
Gender: Male
Nature: Adamant
Posts: 1,224
I'd also like to know about this. It could make things interesting for my game
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 17th, 2014 (12:36 PM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Yes, you can
All HM's use the command "checkattack"
You can learn more about that in some tutorial or even open up the script for cut on a-map
to check for both cut AND slash, you just use the command kinda like this
Spoiler:

checkattack 0xcut
if 0x1 goto @cut
checkattack 0xslash
if 0x1 goto @slash
release
end


Obviously you'd have to replace "cut" and "slash" by their values
__________________
Working on:


#fasterSneasel :D (nohomo)

Coolest IRC with the coolest people in the coolest rooms:
http://chat.linkandzelda.com:9090/?channels=romhacking,gogo,discovery,fluorite
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 18th, 2014 (3:59 AM).
leo.d.monkey's Avatar
leo.d.monkey leo.d.monkey is offline
 
Join Date: Apr 2014
Posts: 31
Thanks guys , i will try it. : )
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 18th, 2014 (9:14 AM).
Zeturic's Avatar
Zeturic Zeturic is offline
 
Join Date: Mar 2007
Posts: 787
Note that a checkattack script will only allow you to interact on the field. You could "talk" to the tree and cut it with either Cut or Slash, but if you go into the Pokemon menu and select a Pokemon, Slash will not appear there as a potential field move like Cut will.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old July 19th, 2014 (11:11 AM).
marillmau5's Avatar
marillmau5 marillmau5 is offline
 
Join Date: Oct 2012
Posts: 24
If your using pokemon red, theres actually a tm cut. so with that you can have both.

In anything else, just edit the hm cut text to slash and edit the move to be identical to the slash attack and properties.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old July 24th, 2014 (9:27 AM). Edited April 9th, 2015 by leo.d.monkey.
leo.d.monkey's Avatar
leo.d.monkey leo.d.monkey is offline
 
Join Date: Apr 2014
Posts: 31
Thanks guys.
:P it seem if you use more than one checkattack in the same script it will cause some problem and it will work only if the pokemon is in determined position in the index...and creating a new cut script would interfere with CUT from the pokemon MENU.

So i got it working the way i wanted like this. (way less elegant : P) but in the end i don't need to change all the scripts on the maps

It will work like this , you will create a new move script and will add its offset in the original CUT script in the part where it would say the tree can be cut

FIRE RED US

CHECK IF THE OFFSETS OF YOUR ROM ARE THE SAME, OTHERWISE DON'T COPY AND PASTE THIS.


1-
-OPEN THE ORIGINAL CUT SCRIPT, MAKE BACKUP (DON'T MAKE ANY CHANGES IN THIS SCRIPT YET )

-COPY THE MAIN PART AND CREATE A NEW SCRIPT[/B], ADD YOUR CHOSEN MOVE (MY CASE SLASH...

-NEXT_MOVE_OFFSET[/B] (IF YOU PLAN TO USE MORE MOVES LIKE ME) OTHER WISE JUST ADD THE OFFSET FOR THE FINAL MSG "This tree looks like it can be CUT\ndown" IN RED IS 0x81BDFE3



in FIRED RED it will look like this. coping from checkattack to the end of that script
---------------------------------------------------
NEW SCRIPT : NEXT MOVE
---------------------------------------------------
#dyn 0x740000
#org @BEGIN
checkattack SLASH
compare LASTRESULT 0x6
if == jump *NEXT_MOVE_OFFSET OR END MSG OFFSET*
setanimation 0x0 0x800D
storepartypokemon 0x0 0x800D
storeattack 0x1 0xF
msgbox 0x81BDF94 ' This tree looks like...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT NO
if == jump 0x81BDF91 ' Equal To
msgbox @USED_MOVE
callstd MSG_NOCLOSE ' Non-closing message
closemsg
doanimation 0x2
waitspecial
jump 0x81BDF76

#org @USED_MOVE
= \v\h02 used SLASH!

---------------------------------------------------
-COMPILE, GET THE OFFSET


2-
-OPEN THE ORIGINAL CUT SCRIPT
-ADD THE OFFSET OF YOUR NEW MOVE IN THE CUT SCRIPT AS SHOWED BELLOW
-RECOMPILE THE SCRIPT
--------------------------------------------
CHANGING ORIGINAL CUT SCRIPT
--------------------------------------------
.
.
checkattack CUT
compare LASTRESULT 0x6
if == jump NEW_MOVE_OFFSET
.
.
---------------------------------------------------
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:11 AM.