ZoriaRPG

Let's Script #1 : Unfinished Output

Jan 28th, 2017
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Projectile Bomb
  2.  
  3. item script launchbomb{
  4.     void run(int step, int ... ){
  5.         ffc f; int q;
  6.         for ( q = 1; q < 32; q++ ) {
  7.             //
  8.         }
  9.         int forward[8]={step, this->ID, };
  10.     }
  11. }
  12.  
  13. ffc script rangedbombthing{
  14.     void run(int step, int item_id, ... ) {
  15.         //Not sure what line params I need just yet.
  16.         int q[256]; itemdata id;
  17.         id = Game->LoadItemData(item_id);
  18.         //a general purpose array.
  19.         //temp vars that we will merge
  20.         int btn_mode;
  21.         int dir = Link->Dir;//we need an initial dir, I suspect, Link?Dir is wanted here
  22.        
  23.         //Read the weapon sprite from the item editor.
  24.         int sprite = id->Sprites[0];
  25.        
  26.         if ( Link->UsingItem == item_id ) {
  27.             if ( Link->ItemA == item_id ) btm_mode = 1;c
  28.             if ( Link->ItemB == item_id ) btm_mode = 2;
  29.         }
  30.         else { this->Data = 0; this->Script = 0; Quit(); }
  31.         /* Not sure if i want to exit the script here, yet.
  32.             The player changed items, or something.
  33.             It helps to know what kind of action definitions I give the thing.
  34.         */
  35.         //pressbutton to prevent explosion
  36.        
  37.         while(Game->ButtonInput[BUTTON_A]) {
  38.             //Handle movement.
  39.             Waitframe();
  40.         }
  41.        
  42.         //player released the button, create the explosion
  43.        
  44.         lweapon boom = Screen->CreateLWeaponDx(LW_BOMBBLAST, item_id); //Makes an explosion where this stops.
  45.         boom->X = this->X;
  46.         boom->Y = this->Y;
  47.         boom->Damage = id->Power;
  48.         boom->UseSound(id->UseSound);
  49.         EndFFC(this); //The hell with it, i wrote this, I may as well use it,
  50.     }
  51. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×