- Joined
- Feb 24, 2014
- Messages
- 9
- Reaction score
- 1
- First Language
- English
- Primarily Uses
Hi
I should mention first that I don't really know RGSS, but I understand programming structure enough to know what it going on.
The Script I used was, with bits of help from here and there, but mainly here http://hikimoki.sakura.ne.jp/html/rgss_memo_0.html. I couldn't find anywhere that had exactly what I was looking for, unless it meant adding blocks and blocks of script.
I added:
i = $game_variables[5]
item = $data_items
$game_party.gain_item(item,1)
$game_variables[6] = item.name
-to a common event with a sound effect, a Self switch A and the Text: Found \C[4]\V[6]\C[0]!
Then create an Event with Control Variable no. 5 and assign it the item number (as listed in the items database), and a call to the above common event.
It works fine...

...but is it the best way to do this?
I was trying to free up variable 6 by using:
$game_message.add("Found #{item.name}")but I could not figure out how to make the item highlighted a different colour like above. The \ control characters don't work the same here, hence why I used variable 6.
If this could have been done better or easier, please tell me.
Thanks
I should mention first that I don't really know RGSS, but I understand programming structure enough to know what it going on.
The Script I used was, with bits of help from here and there, but mainly here http://hikimoki.sakura.ne.jp/html/rgss_memo_0.html. I couldn't find anywhere that had exactly what I was looking for, unless it meant adding blocks and blocks of script.
I added:
i = $game_variables[5]
item = $data_items
$game_party.gain_item(item,1)
$game_variables[6] = item.name
-to a common event with a sound effect, a Self switch A and the Text: Found \C[4]\V[6]\C[0]!
Then create an Event with Control Variable no. 5 and assign it the item number (as listed in the items database), and a call to the above common event.
It works fine...

...but is it the best way to do this?
I was trying to free up variable 6 by using:
$game_message.add("Found #{item.name}")but I could not figure out how to make the item highlighted a different colour like above. The \ control characters don't work the same here, hence why I used variable 6.
If this could have been done better or easier, please tell me.
Thanks

