Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- #library "derp"
- #include "commonFuncs.h"
- #define PAPER_COUNT 8 // why not
- int paperNames[PAPER_COUNT] =
- {
- "HERPFONT", "DERPFONT", "PAPER001", "PAPER002",
- "DERPDERP", "HERPDERP", "NERPBERP", "IAERDERP",
- }
- script 494 (int paperIndex)
- {
- if ((paperIndex < 0) || (paperIndex >= PAPER_COUNT)) { terminate; }
- if (CheckInventory("DerpCounter"))
- {
- TakeInventory("DerpCounter", 1);
- Print(s:"Toggling off");
- }
- else
- {
- GiveInventory("DerpCounter", 1);
- Print(s:"Toggling on - ", s:paperNames[paperIndex]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement