Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Cacowad

usdc compatibility in doom-in-hexen format

Recommended Posts

hi to everybody and welcome to another episode of : "how that work?"
today with us these is: the USDC compiler!

edit.ok i got how it work, but still give me a lot of problems, like i select the choise for bullets and instead it give me the page for the shells, and if i try to get cells, the game crash...

the following code is the updated code into the TXT of the map i am doing:

(feel free to modify the post to reduce the code in a "spoiler version" essentially becouse i don't know how to do it)

-------------------------

namespace = "Strife";
include = "SCRIPT00";

conversation // Starts a dialog.
{
actor = 8; // mobj for this conversation's actor. If previously
// used, this will override the previous conversation.

page // Starts a new page. Pages are automatically numbered starting at 0.
{
name = "shop"; // Name that goes in the upper left hand corner
dialog = "welcome back"; // Dialog of the page.

// Choices shall be automatically numbered. (Up to 5)
choice
{
text = "i need ammo"; // Name of the choice.

nextpage = 2; // Sets the next page.
closedialog = false; // Should the dialog be closed upon selecting this choice? Default: false
}
}
page
{
name = "shop";
dialog = "which one?";
choice
{
text = "bullets";

nextpage = 3;
closedialog = false;
}
choice
{
text = "shells";

nextpage = 4;
closedialog = false;
}
choice
{
text = "rockets";

nextpage = 5;
closedialog = false;
}
choice
{
text = "cells";

nextpage = 6;
closedialog = false;
}
page
{
name = "shop";
dialog = "how many?";
choice
{
text = "10 bullets";
cost
{
item = 65; // Item that is required for this option.
amount = 1; // Minimum amount of the item needed.
}
displaycost = true;
yesmessage = "purchased 10 bullets";
nomessage = "not enought souls";
giveitem = 43; // Gives the specified item upon success.
nextpage = 3;
}
choice
{
text = "50 bullets";
cost
{
item = 65;
amount = 5;
}
displaycost = true;
yesmessage = "purchased 50 bullets";
nomessage = "not enought souls";
giveitem = 44; // Gives the specified item upon success.
nextpage = 3;
}
choice
{
text = "100 bullets";
cost
{
item = 65;
amount = 10;
}

displaycost = true;
yesmessage = "purchased 100 bullets";
nomessage = "not enought souls";
giveitem = 44;
giveitem = 44;
nextpage = 3;
}
choice
{
text = "have you something else?";
nextpage = 1;
}


}

page
{
name = "shop";
dialog = "how many?";
choice
{
text = "4 shells";
cost
{
item = 65;
amount = 2;
}

displaycost = true;
yesmessage = "purchased 4 shells";
nomessage = "not enought souls";
giveitem = 47;
nextpage = 4;
}
choice
{
text = "12 shells";
cost
{
item = 65;
amount = 4;
}

displaycost = true;
yesmessage = "purchased 10 shells";
nomessage = "not enought souls";
giveitem = 47;
giveitem = 47;
giveitem = 47;
nextpage = 4;
}
choice
{
text = "40 shells";
cost
{
item =65;
amount = 20;
}

displaycost = true;
yesmessage = "purchased 50 shells";
nomessage = "not enought souls";
giveitem = 48;
giveitem = 48;
nextpage = 4;
}
choice
{
text = "have you something else?";
nextpage = 1;
}
}

page
{
name = "shop";
dialog = "how many?";
choice
{
text = "1 roket";
cost
{
item = 65;
amount = 1;
}

displaycost = true;
yesmessage = "purchased 1 rocket";
nomessage = "not enought souls";
giveitem = 45;
nextpage = 5;
}
choice
{
text = "5 rokets";
cost
{
item = 65;
amount = 5;
}

displaycost = true;
yesmessage = "purchased 5 rokets";
nomessage = "not enought souls";
giveitem = 46;
nextpage = 5;
}
choice
{
text = "10 rokets";
cost
{
item = 65;
amount = 10;
}

displaycost = true;
yesmessage = "purchased 10 rokets";
nomessage = "not enought souls";
giveitem = 46;
giveitem = 46;
nextpage = 5;
}
choice
{
text = "have you something else?";
nextpage = 1;
}
}
page
{
name = "shop";
dialog = "how many?";
choice
{
text = "20 cells";
cost
{
item = 65;
amount = 4;
}

displaycost = true;
yesmessage = "purchased 20 cells";
nomessage = "not enought souls";
giveitem = 41;
nextpage = 6;
}
choice
{
text = "40 cells";
cost
{
item = 65;
amount = 8;
}

displaycost = true;
yesmessage = "purchased 40 cells";
nomessage = "not enought souls";
giveitem = 41;
giveitem = 41;
nextpage = 6;
}
choice
{
text = "100 cells";
cost
{
item = 65;
amount = 20;
}

displaycost = true;
yesmessage = "purchased 100 cells";
nomessage = "not enought souls";
giveitem = 42;
nextpage = 6;
}
choice
{
text = "have you something else?";
nextpage = 1;
}
}
}

-----------------------

this is the decorate code referred...

ACTOR Cell2 : Cell replaces Cell
{
ConversationID 41
}

ACTOR CellPack2 : CellPack replaces CellPack
{
ConversationID 42
}

ACTOR Clip2 : Clip replaces Clip
{
ConversationID 43
}

ACTOR ClipBox2 : ClipBox replaces ClipBox
{
ConversationID 44
}

ACTOR RocketAmmo2 : RocketAmmo replaces RocketAmmo
{
ConversationID 45
}

ACTOR RocketBox2 : RocketBox replaces RocketBox
{
ConversationID 46
}

ACTOR Shell2 : Shell replaces Shell
{
ConversationID 47
}

ACTOR ShellBox2 : ShellBox replaces ShellBox
{
ConversationID 48
}

ACTOR soul: ammo
{
Game Doom
ConversationID 65
Inventory.PickupMessage "a human soul...feel a life vanishing..."
Inventory.Amount 1
Inventory.MaxAmount 300
Ammo.BackpackAmount 10
Ammo.BackpackMaxAmount 2000
Inventory.Icon "TNT1A0"
reactiontime 200
States
{
Spawn:
SOLL ABC 4 A_Countdown
loop
}
}

ACTOR Vendor1 : MarineSSG
{
ConversationID 8
Translation "112:127=208:223"
-SHOOTABLE
+FRIENDLY
States
{
Spawn:
PLAY A 5 A_Look
Loop
See:
PLAY A 20 A_FaceTarget
Loop
}
}

---------------------------

hope you guys can figure out what i am doing wrong.... thank you just for tring.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×