forums | blogs | polls | tutorials | downloads | rules | help

Add new comment

Templarian Arch Sorcerer's picture

Miswritten SFX

It seems that most of my SFX seems to send the wrong worldmsg.
For this SFX, I COULD place damage into the SFX itself, but then the spell will not have any control over the damage. Tell me, what is wrong with this SFX to make it not do damage, and more importantly where could I find a list of all possible worldmsgs for SFX?

*THIS CODE IS COPYRIGHTED*

[effect_script*]
{
	name	=cloudkill;

	script	=
	[[


		sfx create Steam #TARGET
		"color0(0.755,1.000,0.000)velocity(0.000,4.000,0.000)accel(0.000,0.000,0.000)wispsize(0.000)count(20)min_count(20)ts(0.500)scale(5.000)";
		set $p_0 #POP;
		sfx start $p_0;

		sfx create Steam #TARGET
		"color0(0.746,1.000,0.000)velocity(0.000,0.000,4.000)accel(0.000,0.000,0.000)wispsize(0.000)count(20)min_count(20)offset(0.000,0.000,2.290)ts(0.500)scale(5.000)";
		set $p_1 #POP;
		sfx start $p_1;

		sfx create Steam #TARGET
		"color0(0.746,1.000,0.000)velocity(0.000,0.000,-4.000)accel(0.000,0.000,0.000)wispsize(0.000)count(20)min_count(20)offset(0.000,0.000,-2.290)ts(0.500)scale(5.000)";
		set $p_2 #POP;
		sfx start $p_2;

		sfx create Steam #TARGET
		"color0(0.755,1.000,0.000)velocity(-4.000,0.000,0.000)accel(0.000,0.000,0.000)wispsize(0.000)count(20)min_count(20)offset(-2.290,0.000,0.000)ts(0.500)scale(5.000)";
		set $p_3 #POP;
		sfx start $p_3;

		sfx create Steam #TARGET
		"color0(0.746,1.000,0.000)velocity(4.000,0.000,0.000)accel(0.000,0.000,0.000)wispsize(0.000)count(20)min_count(20)offset(2.290,0.000,0.000)ts(0.500)scale(5.000)";
		set $p_4 #POP;
		sfx start $p_4;

		// invisible flame that actually does the damage, because steam is harmless :P
		sfx create Fire #TARGET
		"color0(0.000,0.000,0.000)color1(0.000,0.000,0.000)velocity(0.000,0.000,0.000)accel(0.000,0.000,0.000)max_radius(10.000)damage()scale(5.000)";
		set $p_5 #POP;
		sfx start $p_5;

		worldmsg WE_SPELL_SYNC_END #INVALID_GOID #OWNER_GOID #TARGET_GOID;



	]];
}

:?