Post reply

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:
Subject:
Message icon:

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)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: DavidW
« 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.

Posted by: subtledoctor
« 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?