Search found 42 matches

by Sergeant Hoppy
Tue Dec 14, 2021 3:57 pm
Forum: Scripting
Topic: Give item momentum upon creation?
Replies: 1
Views: 225

Give item momentum upon creation?

I got some things spawning, but as a fun little detail I would love to give the items a little bit of momentum so they fly in a small arch upon spawning, is there any documentation on this?
by Sergeant Hoppy
Mon Dec 13, 2021 3:18 pm
Forum: Scripting
Topic: Dialog
Replies: 2
Views: 435

Re: Dialog

I got it working all by myself "proud" Turns out I did not set the language to "Zdoom strife dialog format", once I did that I got it working, and made a functioning shop. But, on a related note: The shop is a custom map, is it possible to have it so that you go there after the tally screen after ...
by Sergeant Hoppy
Mon Dec 13, 2021 1:03 pm
Forum: Scripting
Topic: Dialog
Replies: 2
Views: 435

Dialog

How do I start a conversation with an actor? I tried the "use" key but nothing initiated? namespace = "ZDoom"; include = "SCRIPT00"; conversation { actor = "HellKnight"; // Not a number! page { name = "Bob"; dialog = "I have a cool chaingun! I want a shotgun though..."; choice { text = "Deal ...
by Sergeant Hoppy
Mon Dec 13, 2021 1:01 pm
Forum: Scripting
Topic: A_Jump
Replies: 5
Views: 639

Re: A_Jump

I see, that did indeed fix it, thank you for correcting me.
by Sergeant Hoppy
Mon Dec 13, 2021 10:59 am
Forum: Scripting
Topic: A_Jump
Replies: 5
Views: 639

Re: A_Jump

Mm, okay. But I get an error saying "SC_GetNumber: Bad numeric constant "CLIP"." How come? //Wooden chest actor Actor WoodChest : SwitchableDecoration { Activation THINGSPEC_Activate +SOLID +DONTMORPH +NOBLOOD +USESPECIAL Monster health 50 radius 18 height 20 States { Spawn: WCST A -1 Stop Active ...
by Sergeant Hoppy
Mon Dec 13, 2021 10:20 am
Forum: Scripting
Topic: A_Jump
Replies: 5
Views: 639

A_Jump

Trying to make my treasure chest a little bit more fancy by using A_Jump to only spawn 1 item at a time, but I'm having some trouble with the syntax. I am guessing I'm not doing the " TNT A 0 A_SpawnItem "Clip" correctly, as I get an error message saying "Sprite names must be exactly 4 characters ...
by Sergeant Hoppy
Sun Dec 12, 2021 7:11 pm
Forum: Scripting
Topic: SNDINFO frustration
Replies: 3
Views: 359

SNDINFO frustration

Well, I don't get what I'm doing wrong, but I cannot get custom sounds going. My sndinfo: Mouthnoise eatburgr the name of the wav is eatburgr without the .wav at the end so it matches. My decorate: ACTOR Fries : Health replaces Stimpack 2011 { Inventory.Amount 10 Inventory.PickupMessage "$GOTFRIES ...
by Sergeant Hoppy
Fri Dec 10, 2021 5:31 pm
Forum: Scripting
Topic: Fake inventory - add amount?
Replies: 16
Views: 3029

Re: Fake inventory - add amount?

Now, if I want to print the current amount in the wallet inventory and the max amount, how would I go about that?
by Sergeant Hoppy
Fri Dec 10, 2021 5:02 pm
Forum: Scripting
Topic: Fake inventory - add amount?
Replies: 16
Views: 3029

Re: Fake inventory - add amount?

I didn't use LOADACS.

I did my best to follow along the wiki, this is the result:
https://ibb.co/TtTLzWN

script.acs:
https://ibb.co/5rfk1wH

zcommon.acs:
https://ibb.co/Zz74Krp

loadacs:
https://ibb.co/SXCyxZm


Guess what? You helped me get it working! thanks a lot for putting up with me!
by Sergeant Hoppy
Fri Dec 10, 2021 4:24 pm
Forum: Scripting
Topic: Fake inventory - add amount?
Replies: 16
Views: 3029

Re: Fake inventory - add amount?

Hm, if I understand what you are saying correctly, I could do this?: Actor Money : CustomInventory 10999 { +COUNTITEM +INVENTORY.INVBAR +INVENTORY.HUBPOWER Tag "$TAG_CASH" States { Spawn: MONY A -1 Stop Pickup: TNT1 A 0 A_GiveInventory ("Wallet", 2) stop } } In game the player is able to pick up the ...
by Sergeant Hoppy
Fri Dec 10, 2021 3:03 pm
Forum: Scripting
Topic: Fake inventory - add amount?
Replies: 16
Views: 3029

Fake inventory - add amount?

Hm, I can't figure out how to add numbers to my fake inventory, I got an experimental zombieman setup where there is a chance that he will drop a dollar bundle, I forget how to make it so the player can pick it up, and have a random amount given to the inventory, any thoughts? // Zombieman drops ...
by Sergeant Hoppy
Fri Dec 10, 2021 12:45 pm
Forum: Scripting
Topic: Health item trouble
Replies: 6
Views: 344

Re: Health item trouble

Ah yes! Thank you kindly for your patience, you are helping a lot and it's working as it should!
by Sergeant Hoppy
Fri Dec 10, 2021 12:27 pm
Forum: Scripting
Topic: Health item trouble
Replies: 6
Views: 344

Re: Health item trouble

Oh yeah, thank you for reminding me! That fixed the issue! Now, I just need to remember how to get the sprite to show correctly, as it is now it only shows as a missing image in the game. I placed the sprite in a folder called sprites and named it BMACA. Do you happen to be able to refresh my memory ...
by Sergeant Hoppy
Fri Dec 10, 2021 11:42 am
Forum: Scripting
Topic: Health item trouble
Replies: 6
Views: 344

Re: Health item trouble

Thank you, I'll need all the luck I can get!

Hm, I replaced class with actor and it complains about that.
by Sergeant Hoppy
Fri Dec 10, 2021 11:07 am
Forum: Scripting
Topic: Health item trouble
Replies: 6
Views: 344

Health item trouble

I've had a long break froom doom, and now it seems I have quite forgotten how to work with zscript it seems, I'm fiddling with a mod that simply replaces medikits with a bigmac burger, when I compile I get this message: Line 1 in file "C:\Users\mukhtaar\AppData\Roaming\SLADE3\temp\DECORATE.acs ...

Go to advanced search