ZoriaRPG

lw trigger traces for Orithan

Jun 24th, 2018
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(lgroup[i]->ID == LW_ARROW)
  2. {
  3.     bool trigger;
  4.     int pos = ComboAt(lgroup[i]->X+8, lgroup[i]->Y+8);
  5.     if(ComboFI(pos, CF_ARROW) && TriggerLevel(IC_ARROW, vars[17], CF_ARROW))
  6.     {
  7.         int t[]="Found CF_ARROW trigger"; TraceNL(); TraceS(t); TraceNL();
  8.         trigger = true;
  9.     }
  10.     else if (ComboFI(pos, CF_ARROW2) && TriggerLevel(IC_ARROW, vars[17], CF_ARROW2))
  11.     {
  12.         int t[]="Found CF_ARROW2 trigger"; TraceNL(); TraceS(t); TraceNL();
  13.         trigger = true;
  14.     }
  15.     else if ( ComboFI(pos, CF_ARROW3) && TriggerLevel(IC_ARROW, vars[17], CF_ARROW3))
  16.     {
  17.         int t[]="Found CF_ARROW3 trigger"; TraceNL(); TraceS(t); TraceNL();
  18.         trigger = true;
  19.     }  
  20.     else if ( ComboFI(pos, CF_STRIKE))
  21.     {
  22.         int t[]="Found CF_STRIKE trigger"; TraceNL(); TraceS(t); TraceNL();
  23.         trigger = true;
  24.     }  
  25.     else
  26.     {
  27.         int t[]="FCould not find a valid trigger for LW_ARROW"; TraceNL(); TraceS(t); TraceNL();
  28.     }
  29.     if ( trigger )
  30.     {
  31.         Game->PlaySound(SFX_SECRET);
  32.         if (!Screen->State[ST_SECRET])
  33.         {
  34.             if(!(Screen->Flags[SF_ROOMTYPE]&2))
  35.             {
  36.                 if (!(Screen->Flags[SF_SECRETS]&2))
  37.                 {
  38.                     Screen->State[ST_SECRET] = true;
  39.                     Screen->TriggerSecrets();
  40.                     int t3[]="Triggering secrets"; TraceNL(); TraceS(t); TraceNL();
  41.                 }
  42.                 else
  43.                 {
  44.                     int t3[]="(Screen->Flags[SF_SECRETS]&2) !=0"; TraceNL(); TraceS(t3); TraceNL();
  45.                 }
  46.             }
  47.             else
  48.             {
  49.                 int t2[]="(Screen->Flags[SF_ROOMTYPE]&2) !=0"; TraceNL(); TraceS(t2); TraceNL();
  50.             }
  51.                 }
  52.         else
  53.         {  
  54.             int t1[]="(SScreen->State[ST_SECRET] == true"; TraceNL(); TraceS(t3); TraceNL();
  55.            
  56.         }
  57.     }
  58. }
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.

×