[WIP]portable DECORATE monster

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Shazbot02
Posts: 7
Joined: Fri Dec 16, 2011 9:31 pm

[WIP]portable DECORATE monster

Post by Shazbot02 »

Hi. I'm trying to make a friendly monster turn into an inventory item when it dies, so you can carry it with you and summon it later.

I've gotten the monster to change into a health bonus on death, but I can't figure out how to code decorate to pick it up.

Here's my jumbled mess of a noob's first mod:
Spoiler:
Help?
User avatar
HellCattX
Posts: 506
Joined: Thu Feb 26, 2009 2:10 pm

Re: [WIP]portable DECORATE monster

Post by HellCattX »

Code: Select all

Actor SummonDemoness1 : CustomInventory 644
{
        -COUNTITEM
        +INVENTORY.INVBAR
        +INVENTORY.HUBPOWER
        +INVENTORY.PERSISTENTPOWER
        +Dropped
        Inventory.Amount 1
        Inventory.InterHubAmount "1"
	Inventory.pickupmessage "Use this so summon the Demoness"
	Inventory.maxamount "1"
	Inventory.icon "BON1"
	Inventory.usesound ""
	states
	{
	Spawn:
		BON1 ABCDCB 6
		Loop
	Use:
		TNT1 A 0 A_FireCustomMissile("Demoness")
	        stop
	}
}
The drop state is when You drop the item out of your inventory not use it, like other inventory items, use enter to activate.
Shazbot02
Posts: 7
Joined: Fri Dec 16, 2011 9:31 pm

Re: [WIP]portable DECORATE monster

Post by Shazbot02 »

BINGO! that fixed it. I had a problem with the monster getting telefragged when I used the item, but messing with noclip fixed that.

Thanks HellCatX!
User avatar
cq75
Posts: 1212
Joined: Sun Dec 27, 2009 9:28 pm
Graphics Processor: nVidia with Vulkan support
Location: Just beyond the line horizon

Re: [WIP]portable DECORATE monster

Post by cq75 »

When I saw this, the first thing that came to mind was a friendly fold-up-imp-in-a-briefcase, but this is good idea too.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: [WIP]portable DECORATE monster

Post by printz »

A more dynamic "dark servant"?
User avatar
Ethril
Posts: 2677
Joined: Sun Nov 16, 2008 2:59 am
Location: with you in the dark

Re: [WIP]portable DECORATE monster

Post by Ethril »

Um.
Am I the only one who noticed that this thing periodically (heh) squats out hell knights?
Locked

Return to “Editing (Archive)”