Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Projectile Bomb
- item script launchbomb{
- void run(int step, int ... ){
- ffc f; int q;
- for ( q = 1; q < 32; q++ ) {
- //
- }
- int forward[8]={step, this->ID, };
- }
- }
- ffc script rangedbombthing{
- void run(int step, int item_id, ... ) {
- //Not sure what line params I need just yet.
- int q[256]; itemdata id;
- id = Game->LoadItemData(item_id);
- //a general purpose array.
- //temp vars that we will merge
- int btn_mode;
- int dir = Link->Dir;//we need an initial dir, I suspect, Link?Dir is wanted here
- //Read the weapon sprite from the item editor.
- int sprite = id->Sprites[0];
- if ( Link->UsingItem == item_id ) {
- if ( Link->ItemA == item_id ) btm_mode = 1;c
- if ( Link->ItemB == item_id ) btm_mode = 2;
- }
- else { this->Data = 0; this->Script = 0; Quit(); }
- /* Not sure if i want to exit the script here, yet.
- The player changed items, or something.
- It helps to know what kind of action definitions I give the thing.
- */
- //pressbutton to prevent explosion
- while(Game->ButtonInput[BUTTON_A]) {
- //Handle movement.
- Waitframe();
- }
- //player released the button, create the explosion
- lweapon boom = Screen->CreateLWeaponDx(LW_BOMBBLAST, item_id); //Makes an explosion where this stops.
- boom->X = this->X;
- boom->Y = this->Y;
- boom->Damage = id->Power;
- boom->UseSound(id->UseSound);
- EndFFC(this); //The hell with it, i wrote this, I may as well use it,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement