Author Topic: feature request: add INSERT variable to ALTER_EFFECT  (Read 1731 times)

Offline subtledoctor

  • Planewalker
  • *****
  • Posts: 131
feature request: add INSERT variable to ALTER_EFFECT
« on: April 17, 2019, 09:11:30 PM »
CLONE_EFFECT has a string variable for INSERT that can control where the cloned effect goes; the older ADD_SPELL_EFFECT and similar macros have INSERT_POINT integer variables. 

With ALTER_EFFECT, there does not seem to be a way to simply move an effect to a different position in the stack.  I can't even use CLONE_EFFECT followed by DELETE_EFFECT because the latter macro does not seem to have a way to control which instance will be deleted. 

Any reason why ALTER_EFFECT can't use an INSERT variable just like CLONE_EFFECT does? 

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
Re: feature request: add INSERT variable to ALTER_EFFECT
« Reply #1 on: April 18, 2019, 02:48:36 AM »
These functions just live in the WEIDU source code; you can alter them yourself and INCLUDE it if you want to. (Cam wrote them, I think, so you could also ask him nicely.)

You can also move an effect by CLONEing it with a placeholder opcode (say, 999), DELETEing the original, then ALTERing the 999 back to the original opcode.


 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: