Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screendata script ChangeEnemies
- {
- void run(int changeItem, int e1, int e2, int e3, int ne1, int ne2, int ne3)
- {
- unless(Hero->Item[changeItem]) Quit();
- for(int q = 0; q < 10; ++q)
- {
- if(Screen->Enemy[q] == e1)
- Screen->Enemy[q] = ne1;
- else if(Screen->Enemy[q] == e2)
- Screen->Enemy[q] = ne2;
- else if(Screen->Enemy[q] == e3)
- Screen->Enemy[q] = ne3;
- }
- }
- }
- screendata script ChangeEnemiesAndMidi
- {
- void run(int changeItem, int e1, int e2, int e3, int ne1, int ne2, int ne3, int midi)
- {
- unless(Hero->Item[changeItem]) Quit();
- for(int q = 0; q < 10; ++q)
- {
- if(Screen->Enemy[q] == e1)
- Screen->Enemy[q] = ne1;
- else if(Screen->Enemy[q] == e2)
- Screen->Enemy[q] = ne2;
- else if(Screen->Enemy[q] == e3)
- Screen->Enemy[q] = ne3;
- }
- unless(midi) return;
- if(midi == -1)
- {
- midi = Game->LoadDMapData(Game->GetCurDMap())->MIDI;
- }
- Audio->PlayMIDI(midi);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement