Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- #import "zzconv.inc"
- script 1 (void) // starting dialogue
- {
- ACS_ExecuteAlways(2, 0, 0, 0, 0); // this script should be clientside
- }
- script 2 (void) CLIENTSIDE
- {
- // don't switch if dialogue has been started already
- Conversation_Init("Spawn a Cacodemon?\nYes[default,target_named=test(666,41,0)]\nNo[target=11]\nGIMME A CYBERDEMON!!![can_activate=13,target=14]");
- }
- script "test" (int arg1, int arg2, int arg3) // spawn caco named
- {
- ACS_ExecuteAlways(10, 0, arg1, arg2, arg3);
- }
- script 10 (int arg1, int arg2, int arg3) // spawn caco
- {
- print(i:arg1, c:' ', i:arg2, c:' ', i:arg3); // should output 666 41 0
- SpawnSpot("TeleportFog", 1);
- SpawnSpotFacing("Cacodemon", 1);
- }
- script 11 (void)
- {
- Conversation_Init("Maybe spawn a Pain Elemental then?\nYes[target=12]\nNo[default]");
- }
- script 12 (void) // spawn pain
- {
- SpawnSpot("TeleportFog", 1);
- SpawnSpotFacing("PainElemental", 1);
- }
- script 13 (void)
- {
- SetResultValue(!!CheckInventory("BFG9000"));
- }
- script 14 (void)
- {
- SpawnSpot("TeleportFog", 1);
- SpawnSpotFacing("Cyberdemon", 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement