HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboard & integer

08-16-2004, 09:29 PM#1
blizzball
well HI, i have a multiboard for reputations andone trigegrs that uptae the multiboard it looks like this:

Code:
Events
	Unit - A unit owned by Neutral Hostile Dies
Actions
	Set goodrep = (goodrep + 1)
	Set minusfive = (minusfive - 5)
	If (All Conditions are True) then do (Then Actions) else do (Else Actions)
		If - Conditions
			(Number of units in (Units owned by Neutral Hostile)) Equal to minusfive
		Then - Actions
			Multiboard - Set the text for Reputation item in column 1, row 1 to (Good reputation points:  + (String(goodrep)))
		Else - Actions
			Do nothing


usually i get this stuff to work but all help is appreciated..Thx!
08-17-2004, 12:23 AM#2
iNfraNe
uhm... what do you want to happen?
08-17-2004, 08:26 AM#3
blizzball
so when you kill 5 units in neutral hostile you will get 1 good reputation point and it will say it in the multiboard..
08-17-2004, 10:59 AM#4
iNfraNe
Code:
Events
	Unit - A unit owned by Neutral Hostile Dies
Actions
                Set intcount = (intcount + 1)
	If (All Conditions are True) then do (Then Actions) else do (Else Actions)
		If - Conditions
			intcount is equal to 5
		Then - Actions
                                                Set intcount = 0
                                	Set goodrep = (goodrep + 1)
			Multiboard - Set the text for Reputation item in column 1, row 1 to (Good reputation points:  + (String(goodrep)))

		Else - Actions
			Do nothing


If it is single player. Else just use an array of intcount and goodrep based on playernumber of owner of killing unit.
08-17-2004, 02:10 PM#5
blizzball
so it really was so easy :) thx!