Give item - Forum
Main My profile Registration Log out Login
Pokemon Hacking
Saturday
10.12.2016
11:19 PM
Welcome Guest | RSS LoginRegistrationMain
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum moderator: fuzzyketchup 
Forum » Tools » Pokescript » Give item (Give item)
Give item
fuzzyketchupDate: Thursday, 2012-10-04, 6:11 PM | Message # 1
Private
Group: Administrators
Messages: 14
Status: Offline
This is almost literally the same as givepokemon, but it's with items instead.

#org $potions
lock
faceplayer
checkflag 0x1203
if b_true goto $done
message $1
$1 1 = Here take this, it might help you.
giveitem 13 1
fanfare 0x13E
boxset 6
setflag 0x1203
release
end

#org $done
lock
faceplayer
message $2
$2 1 = I hoped the potion helped you.
boxset 6
release
end

Click here for the item HEX.

Alright so giveitem 13 1. Looks a lot like givepokemon, it even uses a HEX value.
giveitem 13 1 is really easy. The giveitem tells the game to give an item with the value of 13 HEX (Potion) and then checks to see how many to give the player (1). The max a player can hold is 255, but it will look corrupted if you give the player any number greater than 99. I suggest only giving 1 item at a time.
fanfare 0x13E is just a little jingle that plays when you get an item in the real game.


Creator of http://pkmnhacking.ucoz.com

 
Forum » Tools » Pokescript » Give item (Give item)
Page 1 of 11
Search:


Copyright FuzzyketchupTuts © 2016
Create a free website with uCoz
Scratch Project