SHARE
TWEET

Untitled

a guest Sep 26th, 2015 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "zcommon.acs"
  2. #import "zzconv.inc"
  3.  
  4. script 1 (void) // starting dialogue
  5. {
  6.     ACS_ExecuteAlways(2, 0, 0, 0, 0); // this script should be clientside
  7. }
  8.  
  9. script 2 (void) CLIENTSIDE
  10. {
  11.     // don't switch if dialogue has been started already
  12.     Conversation_Init("Spawn a Cacodemon?\nYes[default,target_named=test(666,41,0)]\nNo[target=11]\nGIMME A CYBERDEMON!!![can_activate=13,target=14]");
  13. }
  14.  
  15. script "test" (int arg1, int arg2, int arg3) // spawn caco named
  16. {
  17.     ACS_ExecuteAlways(10, 0, arg1, arg2, arg3);
  18. }
  19.  
  20. script 10 (int arg1, int arg2, int arg3) // spawn caco
  21. {
  22.     print(i:arg1, c:' ', i:arg2, c:' ', i:arg3); // should output 666 41 0
  23.     SpawnSpot("TeleportFog", 1);
  24.     SpawnSpotFacing("Cacodemon", 1);
  25. }
  26.  
  27. script 11 (void)
  28. {
  29.     Conversation_Init("Maybe spawn a Pain Elemental then?\nYes[target=12]\nNo[default]");
  30. }
  31.  
  32. script 12 (void) // spawn pain
  33. {
  34.     SpawnSpot("TeleportFog", 1);
  35.     SpawnSpotFacing("PainElemental", 1);
  36. }
  37.  
  38. script 13 (void)
  39. {
  40.     SetResultValue(!!CheckInventory("BFG9000"));
  41. }
  42.  
  43. script 14 (void)
  44. {
  45.     SpawnSpot("TeleportFog", 1);
  46.     SpawnSpotFacing("Cyberdemon", 1);
  47. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top