ACC.exe - bool and str parameters for scripts?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

ACC.exe - bool and str parameters for scripts?

Postby Nash » Wed Jan 09, 2019 2:11 pm

I haven't used ACC.exe but remind me again - are bool and str parameters for closed scripts not possible? I coulda sworn they were possible before...
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: ACC.exe - bool and str parameters for scripts?

Postby Gez » Wed Jan 09, 2019 3:38 pm

You do remember that behind the scene, all variables in ACS are really ints?
Gez
 
 
 
Joined: 06 Jul 2007

Re: ACC.exe - bool and str parameters for scripts?

Postby Nash » Wed Jan 09, 2019 3:54 pm

Ah, right. I remembered incorrectly - they were only "possible" because of GDCC. In quotes because I suppose anything other than ints were hacked in.
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: ACC.exe - bool and str parameters for scripts?

Postby Arctangent » Wed Jan 09, 2019 4:05 pm

Strictly speaking, due to the nature of everything being ints in ACS, strings can be passed to scripts. This does require the string to be added to ACS's string table as well as the index of that string to be passed, though, so I'm not really sure if there's a feasible way to make use of this beyond scripts calling other scripts.
User avatar
Arctangent
squawky
 
Joined: 06 Nov 2014
Discord: SquawkyAtan#2371


Return to Scripting

Who is online

Users browsing this forum: Google [Bot] and 2 guests