The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.


Advertise here

Reply
 
Thread Tools
  #1    
Old April 3rd, 2013, 06:45 AM
G3Z0-DV1N3's Avatar
G3Z0-DV1N3
Unhatched Egg
 
Join Date: Jan 2013
Gender: Male
Nature: Jolly

Advertise here
FIRST OFF CAN ANY BODY HELP ME WITH LEVEL SCRIPTING??

1)person talking
#dyn 0x740000 (generates Free space)
#org @main (IMPORTENT!! need it to run the script)
lock (now you can move around while talking)
faceplayer (the person will face you)
msgbox or message @text (,talk,*what ever you want (NO SPACES!!!!)*
callstd MSG_NORMAL [,NOCLOSE,FIND,ITEMS,ect.. (this is the class)]
release (the person releases you)
end (end the script)

#org @.......... (this links with the msgbox @........)
= Hi, My name is\n G3Z0DV1N3
Note:
- \n = new line
- \p = the little red arrow
-\l = new box


2)Find Item
#dyn 0x740000
#org @start (rather use this not your own)
copyvarifnotzero 0x8000 MASTERBALL (you need the copyvarifnotzero and 0x8000)(masterball is the item)
copyvarifnotzero 0x8001(the 0x8000 change to 80001 in the amout you want) 1(this is the amount you want)
callstd MSG_FIND (this class is to find something)
end (don't need release)

3)A person gives you a item
#dyn 0x740000
#org @main
lock
faceplayer
checkflag 0x268 (random number between 200 - 600)
if == jump @alreadygave (this wil jump to a message telling you,you already got a item)
message @talk
callstd MSG_YESNO (this is a class asking a yes no question)
compare LASTRESULT YES (if you clicked yes it jumps to yes text)
if == jump @yes
jump @no (if you clicked no it will skip the yes text and goto @no)

#org @yes (when you said yes it jumped to this and it will generate a item you want)
message @give
callstd MSG_NORMAL
additem POKEBALL(item) 1(amount)
setflag 0x268
release
end

#org @no
message @keep
callstd MSG_NORMAL
release
end

#org @alreadygave
message @goaway
callstd MSG_NORMAL
release
end

#org @talk
= Want a Pokeball?

#org @goaway
= I already gave you one.

#org @give
= Okay.

#org @keep
= Fine, don't take it.

4) Give a pokemon ((((((this is not a YESNO!!)))))
#dyn 0x740000
#org @start
lock
checkflag 0x265 (remember to change to persons event's ID to the flag number!)
if 0x1 jump :end (if you already got a pokemon it ends)
setflag FR_POKEMON
countpokemon (this counts how many pokemon you have in your party!)
compare LASTRESULT 6 (i f you have 6 it gos to no room !)
if == jump @noroom
addpokemon BLAZIKEN(pokemon) 0x5(level) LUCKYEGG(item it holds) 0 0 0(unknown)
setflag 0x265
storepokemon 0 BLAZIKEN (this stores the pokemon)
message @get-msg
fanfare 0x101 (this is the sound you get when picking up a item something like (toeding!))
showmsg
waitfanfare
waitbutton
:end (ends the script)
disappear 0x1(this is the person event's no. like when you create a new event and you already have 2 on the map it will be 3)
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!

NOTE:
- \v\h01 PLAYER NAME
-\v\h02 POKEMON NAME
-\v\h06 RIVAL NAME

5)road closed [this is alittle ou of my knowlegde]
#dyn 0x740000
#org @start
lockall
checkflag 0x233(change the persons ID to 233)
if 0x1 jump @open
message @text
showmsg
waitbutton
releaseall
end

#org @text
= I'm sorry, the road is closed\nuntil further notice.

#org @open
message @opentxt
showmsg
waitbutton
fadescreen 3
closemsg
disappear 0x10(person evnt no.)
setflag 0x233
fadescreen 2
releaseall
end
#org @opentxt
= I'm sorry, th-\pOh right!\nThe construction just finished\lyesterday[.]

NOTE:
proffesional scripters or good scripters help me with this and level scripts!


6)Heal pokèmon like when your mom says you must rest
#dyn 0x740000
#org @
lockall
message @healmsg
showmsg
waitbutton
fadescreen 1 (you can also say fadescreen fadeout_black)
closemsg
special 0(just a special always put this in!)
fadescreen 0 (you can also say fadescreen fadein_balck)
msgbox @bettermsg
callstd MSG_NORMAL
releaseall
end

#org @healmsg
= Your POKéMON look tired[.]\nYou should give them a rest.

#org @bettermsg
= There. All better now!

Notice:
if you fadescreen 1 or fadescreen fadeout_black you MUST have fadescreen 0 or fadescreen fadein_black


7)Trainer battles
ask me in a private message cause it's a longish tutorial

8)must use a hm to continue!(not tested!)
#dyn 0x740000
#org @start
special 0x187 (the special you must use)
compare LASTRESULT 2
if == jump 0x81A7AE0
lockall
checkattack CUT
compare LASTRESULT 6
if == jump @donthave
setanimation 0 LASTRESULT
storepokemonvar 0 LASTRESULT
storeattack 1 CUT
msgbox @doit
callstd MSG_YESNO
compare LASTRESULT 0
if == jump 0x81BDF91
msgbox 0x81BDFD7
callstd MSG_NOCLOSE
closemsg
doanimation 2
waitspecial
disappear 0x2
releaseall
end

#org @donthave
msgbox @donthavemsg
callstd 0x3
releaseall
end

#org @doit
= Do you want to cut\n down the tree?

#org @donthavemsg
= None of your pokèmon\nhas the HM cut!


9)Need item to proceed!
#dyn 0x740000
#org @start
special 0x187(change your persons ID to 187)
compare LASTRESULT 2
if == jump :end
lockall
storeitem 0 TOWNMAP
checkitem TOWNMAP 1
compare LASTRESULT 0
if == jump @donthave
msgbox @havemsg
callstd MSG_YESNO
compare LASTRESULT 0
if == jump :end
removeitem TOWNMAP 1
msgbox @IusedThis
callstd MSG_NOCLOSE ' Non-closing message
applymovement 0x(person event number) @move
pauseevent 0
disappear 0x(the person event number)
:end
releaseall
end

#org @donthave
msgbox @donthavemsg
callstd MSG_SIGN
end



#org @havemsg
= Do you have a Town MAp?

#org @IusedThis
= OKay then!\n GO explore!

#org @donthavemsg
= NO sorry you won't\n know where youre going!

#org @move
M walk_up end(change to what ever you want!)

NOTICE:
I want to know what the pokedex's ID is (like get item ID becuase don't know!! )


10)Want more Private message me or email [email protected]!!
__________________
P0K3M0N DV1N3......, C0M1NG S00N HAHAH<<< I wish I need help with level scripting!!
Reply With Quote
  #2    
Old April 5th, 2013, 06:34 AM
theRiolvile's Avatar
theRiolvile
Thelucaman
 
Join Date: Mar 2013
Location: South Africa
Age: 18
Gender: Male
Nature: Adamant
So I can uss XSE and PKSV for both scripting thanx
Reply With Quote
  #3    
Old June 8th, 2013, 11:12 AM
Gyaradoseforwin
Unhatched Egg
 
Join Date: Jun 2013
ok so i got pksv and i can make scripts but when i past them in the offset in A-maps and click "open script" i get this message "No script editor defined" what do i do to fix this
Reply With Quote
  #4    
Old June 9th, 2013, 10:54 AM
Synchronous's Avatar
Synchronous
Lying is my forte, you know?
Community Supporter
 
Join Date: Mar 2011
Location: in a「daze」
Age: 15
Gender: Male
Nature: Quiet
Send a message via Skype™ to Synchronous
Quote:
Originally Posted by Gyaradoseforwin View Post
ok so i got pksv and i can make scripts but when i past them in the offset in A-maps and click "open script" i get this message "No script editor defined" what do i do to fix this
In Advance Map, go to Settings -> Script Editor, choose XSE.exe or PKSVUI.exe, and then click no in the following dialog, because the offsets are not defined by colons.
__________________
Reply With Quote
  #5    
Old June 9th, 2013, 11:43 PM
Ksiazek Bartlomiej's Avatar
Ksiazek Bartlomiej
Rejishan awake...
 
Join Date: Jun 2008
Location: Takoabe Town (Region Thonsu)
Age: 21
Gender: Male
Nature: Hardy
Ok. Told me bro how is good HEADBUTT TREE script for PKSV? I try ten of them and no one works.
__________________
- During Centuries... Whole worlds try keep in survive... Beafore the space start existing... In chaos eye appeared two eggs... One of mighty pokemon Arceus... Secound with less known Rejishan... Those two pokemon start build their worlds in other warps... Rejishan lose him mission... And undone world named now was TORN WORLD where now live Giratina... Arceus create world with Pokemons where live everywhere alongside with humans... What do Arceus after fail of Rejishan? He give him able to live in him world... But Rejishan want create something which been himself... And from biggest dessert upper than Unova Region start creating new region... This region is Thonsu... New species of Pokemons start locate at their region... Arceus fell angry... But forgive Rejishan and make with him friendship... But now... Is no one know... Rejishan hide in human body... Human name of Thonsu Creator is Sir Allan Newlight... - MYTH ABOUT REJISHAN (Pokemon Dirty Sun plot)

MY MUSIC SHOP - http://www.pokecommunity.com/showthread.php?t=296954
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 12:40 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.