"A_TAKEHEALTH ()" should do the trick. but i've never tried something like this. best of luck thoughzyzxzexe wrote:how do I decrease player health with an item

"A_TAKEHEALTH ()" should do the trick. but i've never tried something like this. best of luck thoughzyzxzexe wrote:how do I decrease player health with an item
I think this one requires ACS; again, you set up a CustomInventory item that calls an ACS script through [wiki]ACS_NamedExecuteAlways[/wiki] on pickup. By using [wiki]GetActorProperty[/wiki] and [wiki]SetActorProperty[/wiki] with APROP_JumpZ, you can get the current jumpZ of the player and increase it.notjustinbailey wrote:How can I increase Jump Height through pickups?
There is no "A_TakeHealth", but there are, however, [wiki]A_SetHealth[/wiki] and [wiki]A_DamageSelf[/wiki].Dragon Mech wrote:"A_TAKEHEALTH ()" should do the trick. but i've never tried something like this. best of luck thoughzyzxzexe wrote:how do I decrease player health with an item.
I'm sorry, I have been looking through pages, but it's still not clear to me on how to add to a stat.Blue Shadow wrote:I think this one requires ACS; again, you set up a CustomInventory item that calls an ACS script through [wiki]ACS_NamedExecuteAlways[/wiki] on pickup. By using [wiki]GetActorProperty[/wiki] and [wiki]SetActorProperty[/wiki] with APROP_JumpZ, you can get the current jumpZ of the player and increase it.notjustinbailey wrote:How can I increase Jump Height through pickups?
If you don't know anything about ACS, [wiki=ACS]then you better start doing some research[/wiki].![]()
Code: Select all
#include "zcommon.acs"
script "JumpBoostSmall" (void)
{
SetActorProperty(0, APROP_JumpZ, GetActorProperty(0, APROP_JumpZ)+5000);
}
my bad. thanks for the correction.Blue Shadow wrote:There is no "A_TakeHealth", but there are, however, A_SetHealth and A_DamageSelf.
Code: Select all
Script error, "Powerups.pk3:decorate/monsterspawns.dec" line 1:
Parent type 'CustomMonsterInvasionSpot' not found in WeakGroundSpawner
Code: Select all
ACTOR WeakGroundSpawner : CustomMonsterInvasionSpot 200
{
DropItem "Zombieman2"
DropItem "ShotgunGuy"
DropItem "Chaingunner"
DropItem "DoomImp"
}
I tried that and messed around with it but can't seem to get it to spawn monsters more than once.phantombeta wrote:I believe CustomMonsterInvasionSpot is Zandronum only.
Change that to "RandomSpawner"