Advertisement
Guest User

ACS conversation system (multiplayer) - usage

a guest
Sep 28th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.08 KB | None | 0 0
  1. #include "zcommon.acs"
  2. #import "zzconv.inc"
  3.  
  4. script 1 (void) // starting dialogue
  5. {
  6.     // don't switch if dialogue has been started already
  7.     Conversation_Init("Spawn a Cacodemon?\\n(or a cyberdemon if you have the BFG)\\n(мяу, кстати)\nYes[default,target_named=test(666,41,0)]\nNo[target=11]\nGIMME A CYBERDEMON!!![can_activate=13,target=14]");
  8. }
  9.  
  10. script "test" (int arg1, int arg2, int arg3) // spawn caco named
  11. {
  12.     ACS_ExecuteAlways(10, 0, arg1, arg2, arg3);
  13. }
  14.  
  15. script 10 (int arg1, int arg2, int arg3) // spawn caco
  16. {
  17.     print(i:arg1, c:' ', i:arg2, c:' ', i:arg3); // should output 666 41 0
  18.     SpawnSpot("TeleportFog", 1);
  19.     SpawnSpotFacing("Cacodemon", 1);
  20. }
  21.  
  22. script 11 (void)
  23. {
  24.     Conversation_Init("Maybe spawn a Pain Elemental then?\nYes[target=12]\nNo[default]");
  25. }
  26.  
  27. script 12 (void) // spawn pain
  28. {
  29.     SpawnSpot("TeleportFog", 1);
  30.     SpawnSpotFacing("PainElemental", 1);
  31. }
  32.  
  33. script 13 (void)
  34. {
  35.     SetResultValue(!!CheckInventory("BFG9000"));
  36. }
  37.  
  38. script 14 (void)
  39. {
  40.     SpawnSpot("TeleportFog", 1);
  41.     SpawnSpotFacing("Cyberdemon", 1);
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement