↓ Skip to main content

processing MSDP spells in tintin++

·66 words·1 min

here’s an example to add a line to your status bar prompt thingie listing spells you’re affected by and their duration. (this would go somewhere in your msdp event handler)

	#format {aprompt} {};

	#foreach {$MSDP_AFFECTS[]} {affect} {
		#var key $affect;
		#var val $MSDP_AFFECTS[$affect];
		
		#if {$val > 0} {
			#format {aff} {<bbf>%s<g08>:<bbf>%s } {$affect} {$val};
			#format {aprompt} {$aprompt%s } {$aff};
		}
	};
	
	#line ignore #showme {$aprompt} {1};