Mmh.. dachte das wird sogar irgendwo gespeichert habs aber grad nicht gefunden.
Wenn das Item auf der Map benutzt wird gehe ins Script
Scene_Item und füge unter Zeile 189 diese Zeile ein:
|
Ruby Quellcode
|
1
|
$game_variables[1] = @item.id |
So erhält die Spielvariable 1 die Item ID. (Frei wählbar, aber bitte vorrausstehenden 0en weglassen)
Das ganze sollte dann so aussehen:
|
Ruby Quellcode
|
1
2
3
4
5
6
7
8
|
if @item.common_event_id > 0
$game_variables[1] = @item.id
# Common event call reservation
$game_temp.common_event_id = @item.common_event_id
# Switch to map screen
$scene = Scene_Map.new
return
end |
Damit das ganze auch im Kampf funktioniert musst du die Änderung noch in
Scene_Battle 4 unter Zeile 379 vornehmen:
|
Ruby Quellcode
|
1
2
3
4
5
|
@animation1_id = @item.animation1_id
@animation2_id = @item.animation2_id
$game_variables[1] = @item.id
# Set common event ID
@common_event_id = @item.common_event_id |