Search found 25 matches

by hima3009
Fri Apr 22, 2022 6:51 pm
Forum: Scripting
Topic: [ACS] Format large numbers with commas?
Replies: 1
Views: 291

Re: [ACS] Format large numbers with commas?

Never mind i figured it out #library "NUMBS" #include "zcommon.acs" Function int CommaNumbers(int x) { int firstleftnumb; int midnumb; int lastrightnumb; int finalnumb; int numbstr = StrParam(d:x); int numblen = Strlen(numbstr); if (numblen >=4 && numblen <=6) { firstleftnumb = StrLeft(numbstr ...
by hima3009
Fri Apr 22, 2022 12:20 pm
Forum: Scripting
Topic: [ACS] Format large numbers with commas?
Replies: 1
Views: 291

[ACS] Format large numbers with commas?

Is there a way in ACS to add commas to large numbers for better readability ?

e.g : 201234567890 >> "201,234,567,890"
by hima3009
Tue Mar 01, 2022 6:03 pm
Forum: Scripting
Topic: GetLevelInfo in MAP100 doesn't return correct level number
Replies: 5
Views: 344

Re: GetLevelInfo in MAP100 doesn't return correct level numb

I haven't used the new MAPINFO format (ZMAPINFO) before. Well, For the time being I write stuff for zdaemon and i think that it doesn't support the new format, But i'll stop using old MAPINFO whenever i use gzdoom or zandronum.
by hima3009
Tue Mar 01, 2022 4:30 am
Forum: Scripting
Topic: GetLevelInfo in MAP100 doesn't return correct level number
Replies: 5
Views: 344

Re: GetLevelInfo in MAP100 doesn't return correct level numb

Thanks a lot, I added this in MAPINFO and it worked !

Code: Select all

defaultmap 

map MAP100 "Test Level 100"
levelnum 100
by hima3009
Mon Feb 28, 2022 4:25 pm
Forum: Scripting
Topic: GetLevelInfo in MAP100 doesn't return correct level number
Replies: 5
Views: 344

GetLevelInfo in MAP100 doesn't return correct level number

I'm trying to get the number of any map above 99 but it always returns 0 . #library "NEXTLVl" #include "zcommon.acs" script "CheckMapNumber" ENTER { delay(1); int currentlevel = getlevelinfo(LEVELINFO_LEVELNUM); log(d:currentlevel); print(d:currentlevel); } I don't know if it's a function or script ...
by hima3009
Mon Feb 14, 2022 10:04 am
Forum: Scripting
Topic: Help With Imagetool.
Replies: 7
Views: 492

Re: Help With Imagetool.

Awesome! this Actually worked thank you very much.

Edit: here's my results if anyone came across this and in interest of it.
by hima3009
Sun Feb 13, 2022 12:56 pm
Forum: Scripting
Topic: Help With Imagetool.
Replies: 7
Views: 492

Re: Help With Imagetool.

Using the conventional method only displays "A" instead of the pictures by using HudMessage and converting my picture to doom format by slade then putting them Between FF marker, and according to this post: https://forums.zdaemon.org/viewtopic.php?p=267587&sid=872e4da0a427bf5bb78cd648df418d1f I need ...
by hima3009
Thu Feb 10, 2022 3:17 pm
Forum: Scripting
Topic: Help With Imagetool.
Replies: 7
Views: 492

Help With Imagetool.

Does anyone still use ImageTool ? https://zdoom.org/wiki/ImageTool#:~:text=ImageTool%20is%20a%20generalized%20image,to%20ZDoom%20fonts%20and%20images. i wanted to display Blood splashes using HudMessage in zdaemon but for some reason it always gives me errors like : "Nothing to save" and "glyphs out ...
by hima3009
Sat Jan 29, 2022 4:27 pm
Forum: Scripting
Topic: Can ACS detect which monster killed the player?
Replies: 2
Views: 591

Re: Can ACS detect which monster killed the player?

Thanks! This works most of the time, the reason i came up with my question is that in zdaemon some of the custom monsters replaces a decorations like "HangTNoBrain" and that actor doesn't have the string "Obituary", so when a player dies you get "Player Died" instead of "Player is killed by ...
by hima3009
Thu Jan 27, 2022 4:33 pm
Forum: Scripting
Topic: Can ACS detect which monster killed the player?
Replies: 2
Views: 591

Can ACS detect which monster killed the player?

Is there a way we can detect which monster killed the player and execute Scripts accordingly?
by hima3009
Fri Nov 26, 2021 11:22 am
Forum: Scripting
Topic: Safety Mechanism For Custom Inventory
Replies: 10
Views: 672

Re: Safety Mechanism For Custom Inventory

That's exactly what i wanted , Thank you very much. I edited the script to make it look the way i wanted: https://imgur.com/54yeNFD here is the modification: #include "zcommon.acs" function int DoDrawGhostTime (str powerup, int y) { int tics = GetActorPowerupTics(0, powerup); if (tics > 0) { int ...
by hima3009
Wed Nov 24, 2021 1:18 pm
Forum: Scripting
Topic: Safety Mechanism For Custom Inventory
Replies: 10
Views: 672

Re: Safety Mechanism For Custom Inventory

Hey, sorry to bother you.. can you give me a timer example for "PowerGhost" as i really tried all the stuff i know but i couldn't make a timer for the love of god.
by hima3009
Fri Nov 12, 2021 1:58 pm
Forum: Scripting
Topic: Help with DEHSUPP.
Replies: 1
Views: 163

Help with DEHSUPP.

How can i compile or decompile a dehsupp?
i have the "dehsupp.exe" but it doesn't work the same way as "acc.exe"
i know dehsupp is very old and obsolete but i really want to make my one stuff on zdaemon.
by hima3009
Wed Nov 10, 2021 1:09 pm
Forum: Scripting
Topic: Monster randomizer in ACS
Replies: 1
Views: 192

Monster randomizer in ACS

Is there any way to spawn a custom monsters using ACS?
by hima3009
Mon Oct 25, 2021 8:58 am
Forum: Scripting
Topic: Can anyone help me with SetActorProperty ?
Replies: 2
Views: 292

Re: Can anyone help me with SetActorProperty ?

Thanks i have done this method.. Even though my wad has 20 custom monsters , but i eventually made new actors for each one plus the OG monsters and gave them the properties i wanted.
i thought that maybe ACS would help in this rather lengthy task.

Go to advanced search