Another noob DECORATE question:

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1.5 MiB.

Expand view Topic review: Another noob DECORATE question:

Re: Another noob DECORATE question:

by Herculine » Thu Jun 02, 2011 23:44

When I tried that it made them like the other armor types, i.e. as if the Green Armor was only worth 5 points and I couldn't pick up another armor bonus until I had taken enough damage to drop my armor back below 5.

Re: Another noob DECORATE question:

by Rex Claussen » Thu Jun 02, 2011 23:23

Herculine wrote:Now I wish I could figure out how to do the same with the armor bonuses.... I've figured out how to increase their maximum, but not how to prevent DoomGuy from picking them up after he's reached that maximum.
Are you including the following instruction:

Armor.Maxsaveamount xxx?

(Simply substitute 'xxx' with the armor number you want. The default for armor bonuses is 200.)

Re: Another noob DECORATE question:

by Herculine » Thu Jun 02, 2011 22:43

I think I've got that one worked out now:

Code: Select all

actor NewSoulSphere : Health
{
  Game Doom
  +COUNTITEM
  +FLOATBOB
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.FANCYPICKUPSOUND
  Inventory.Amount 100
  Inventory.MaxAmount 200
  Inventory.PickupMessage "SUPERCHARGE!"
  Inventory.PickupSound "misc/p_pkup"
  States
  {
  Spawn:
    SOUL ABCDCB 6 Bright
    Loop
  }
}
(I used it in a random spawner that replaced the SoulSphere so of course I didn't need to specify that in this bit of code; and I didn't want it to use inheritance anyway.)

Now I wish I could figure out how to do the same with the armor bonuses. In my head it seems like they should work just like regular armor, but I'm just not getting it for some reason. I've figured out how to increase their maximum, but not how to prevent DoomGuy from picking them up after he's reached that maximum.

Re: Another noob DECORATE question:

by PeskySaurus » Thu Jun 02, 2011 20:36

No problem. Also, make sure +INVENTORY.ALWAYSPICKUP isn't in there, because... well it looks self explanatory to me. I've never made any health items but I have custom weapons/monsters/lights and stuff in my .wad I'm making... I'm kind of going on assumption here looking on the ZDoom wiki. If none of this works let me know.

Re: Another noob DECORATE question:

by Herculine » Thu Jun 02, 2011 20:30

Thanks. I'll give that a shot.

Re: Another noob DECORATE question:

by PeskySaurus » Thu Jun 02, 2011 20:28

I think you need to put

inventory.maxamount 200

under neath the inventory.amount and pickupmessage (i'm not sure if the order even matters.)

Another noob DECORATE question:

by Herculine » Sun May 15, 2011 17:58

In my mod I'm using the LifeSphere power-up from the Realm667 Item Store.

What I would like to do (but am not sure exactly how to) is rig the Soulsphere so that it won't be picked up unless the player's health is below 200.

Any help will be much appreciated!

Top