Monster activated scripts

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
The Ultimate DooMer
Persecution Complex
Posts: 152
Joined: Tue Nov 08, 2005 23:04
Location: Industrial Zone
Contact:

Monster activated scripts

Post by The Ultimate DooMer »

Running these scripts via actors with the +ACTIVATEMCROSS flag, and also via sector action things with the deaf flag seem to be broken now. (they worked last year with an older version, not sure which one as it was ages ago now)

Tested with 1.0.30, 1.1.03 and r188.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

I just managed to get a DoomImp to activate a line and a thing script. Also, I made a custom actor, inheriting from the DoomImp and removed the ismonster flag just to see if that was relevant and it still worked. r188

Do you have a sample actor that isn't activating scripts?

[edit]Oh, and an obvious question, do your scripts do things that will be obvious to actors that did not activate the script? ie should the player see the effect of the script. I know that I once had a script that was working perfectly, but the only one that could "see" the effect was the monster who ran the script.[/edit]
User avatar
The Ultimate DooMer
Persecution Complex
Posts: 152
Joined: Tue Nov 08, 2005 23:04
Location: Industrial Zone
Contact:

Post by The Ultimate DooMer »

I've just been playing around with it, and it seems that the lines and sector actions are no longer running internal ACS functions like printing, incrementing a variable etc. whereas they used to work last year when I made a script using such techniques.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Well, the script I used was:

Code: Select all

#Include "ZCommon.ACS"

script 1 (void)
{
	printbold(s:"Line activated.");

}


script 2 (void)
{
	printbold(s:"Thing activated.");

}
When the imp walked over the script line, I saw the script 1 message. When it walked into a different sector, I saw the second message.


Just load up the file then wake the imp by shooting. Let him come to you and you should see both messages.
Attachments
test.zip
(698 Bytes) Downloaded 58 times
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Post something that doesn't work, please.
User avatar
The Ultimate DooMer
Persecution Complex
Posts: 152
Joined: Tue Nov 08, 2005 23:04
Location: Industrial Zone
Contact:

Post by The Ultimate DooMer »

And I was just on my way here to say that I was testing with the one special that doesn't work in this way...print (and that's cos I haven't used this method for months too so forgot about it). Oh well, back to the asylum, delete this thread etc.
Locked

Return to “Closed Bugs”