Monster state controls (Zscript)

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.

Monster state controls (Zscript)

Postby Apeirogon » Tue Dec 19, 2017 5:12 am

I want change some function, say a_look to a_lookex(0,0,1048)
Code: Select allExpand view
action void err_sample_look_I_guess()
   {
      a_lookex(0,0,1048);
   }

globally in every single existing curently on map monster, without editing every monsters code in doombuilder.

Is it possible to do without editing gzdoom.pk3, and, if yes, how?

ADD:Since this impossible, how one monster can control other monster directly?
Like, I have enchanted cyberdemon. If this cyberdemon enter on the battlefield it must

If it see much monsters he with words "REJOICE IN THE COMING OBLIVION!!!" command all monsters stay away from player, to not suffer from splahs damage.
Then, if cyberdemon left with half of full hp, or so, and near stil much other hellspawn it say "DESPAIR, FOR YOU END IS NEAR!!! CRUSH THEEEEEEEEM!!!!!!!" forced all alive demon attack as before. If there are no left alive/left just pair demons it say "WEAKLINGS!! I WILL FIGHT ALONGSIDE YOU NO LONGER!" and start killing all other monsters in current room, including player, and all monster that dont have luck spawn/enter in room at this moment.

If some one interest, if it enter in battle alone, or so, it say "Can no one open me a challenge?" and near death "Back into the shadows to fight another day." and, if it escape from last death strike it will spawn again with words "You didnt truly expect to stop the forces of Chaos"

How make so?
Last edited by Apeirogon on Tue Dec 19, 2017 1:22 pm, edited 1 time in total.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Global override/change function (Zscript)

Postby Blue Shadow » Tue Dec 19, 2017 6:12 am

No, that cannot be done.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI Radeon (Modern GZDoom)


Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests