<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "ShieldRegen [Solved]"]]></title>
		<link>http://www.disastrousconsequences.com/dcforum/posts/list/1.page</link>
		<description><![CDATA[Latest messages posted in the topic "ShieldRegen [Solved]"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>ShieldRegen [Solved]</title>
				<description><![CDATA[ i am busy working around a bit in making another add-on for ut2004rpg,
orwel.. add-on its sort off for my own server wich could be online any time now :)
but for this i have been busy coding a new ability "ShieldRegen"
but somehow i cant get it to work,

as a error during compiling it keeps saying
<blockquote>AbShieldRegenInv<20>
Call to 'AddShieldStrength' : Bad ',' or missing '>'&nbsp;
		</blockquote>
end the rest is standard error text wich he shows
also here is the code i got:

[EDIT: Code Removed]

do any of you guys know what i am doing wrong here ?
i know a bunch of rpg and learn more each day,
but i still cant figure errors like these out  :( 
oke, i do know the first part about line 20 :P
but not the second part of the error about bad or missing ?]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7281</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7281</link>
				<pubDate><![CDATA[Tue, 16 Aug 2005 13:47:08]]> GMT</pubDate>
				<author><![CDATA[ Drago'Nish]]></author>
			</item>
			<item>
				<title>Re:ShieldRegen</title>
				<description><![CDATA[ is this Java?

what does the AddShieldStrength function look like?]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7312</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7312</link>
				<pubDate><![CDATA[Wed, 17 Aug 2005 15:56:22]]> GMT</pubDate>
				<author><![CDATA[ edomingox]]></author>
			</item>
			<item>
				<title>Re:ShieldRegen</title>
				<description><![CDATA[ <p></p>

		<cite>edomingox wrote:</cite><br>
		<blockquote>is this Java?

what does the AddShieldStrength function look like?&nbsp;
		</blockquote>
small point, what does java have to do with this ?
i export them through ucc and then just open the uc files with a text editor :)

and for the AddShieldStrength
i dont have a clue,
all i know is that it is a working value,
because it is also being used in the booster adrenaline combo:

[EDIT: Code Removed]]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7317</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7317</link>
				<pubDate><![CDATA[Wed, 17 Aug 2005 17:32:45]]> GMT</pubDate>
				<author><![CDATA[ Drago'Nish]]></author>
			</item>
			<item>
				<title>Re:ShieldRegen</title>
				<description><![CDATA[ Not knowing what the code for that function looks like, I would suspect the number of arguments... you are passing two arguments and the combo code is only passing one.]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7319</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7319</link>
				<pubDate><![CDATA[Wed, 17 Aug 2005 18:57:56]]> GMT</pubDate>
				<author><![CDATA[ Spike]]></author>
			</item>
			<item>
				<title>Re:ShieldRegen</title>
				<description><![CDATA[ yeah,
but the combo is quite different then the abilitys in the rpg
give me a second and i wil post the original regen code wich might be of more use
also the normal regen ability code does work.

[EDIT: Code Removed]

also cant druid just look into it,
or is he currently not visiting the forums or something, since i havent seen him around lately.]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7329</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7329</link>
				<pubDate><![CDATA[Thu, 18 Aug 2005 05:27:45]]> GMT</pubDate>
				<author><![CDATA[ Drago'Nish]]></author>
			</item>
			<item>
				<title>Re:ShieldRegen</title>
				<description><![CDATA[ why do you have 2 variables in the function call the AddShieldStrength function only needs one the compiler dosent understand why there is a "," in that line when it only needs one

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>function bool AddShieldStrength&#40;int ShieldAmount&#41;
{
	local int OldShieldStrength;

	OldShieldStrength = ShieldStrength;
	ShieldStrength += CanUseShield&#40;ShieldAmount&#41;;
	if &#40; ShieldAmount == 50 &#41;
	{
		SmallShieldStrength = 50;
		if &#40; ShieldStrength &lt; 50 &#41;
			ShieldStrength = 50;
	}
	return &#40;ShieldStrength != OldShieldStrength&#41;;
}</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7337</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7337</link>
				<pubDate><![CDATA[Thu, 18 Aug 2005 14:18:30]]> GMT</pubDate>
				<author><![CDATA[ Nonya-Biz]]></author>
			</item>
			<item>
				<title>Re:ShieldRegen</title>
				<description><![CDATA[ wel i dont completly understand it,
it can have a problem with 2 variables and such
but i just copied the health regen ability
and changed that,
but i asume you mean the second part in line 20 that should not be there ?

EDIT:
oke tried removing that, now i get a error in line 21,
"Error, missing ";" before "}"

EDIT2:
added the ; before the } in line 21
and it just compiled,
never knew that a ; before a } was a correct combination,
but that is why i am still a bit new to this i guesse :)

thnx for the help, for the people who helped  :) 

i'll go try if it works ingame now aswel,
else "I'll be back"

EDIT3: oke it all works now :D
thnx again for the help ;)]]></description>
				<guid isPermaLink="true">http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7339</guid>
				<link>http://www.disastrousconsequences.com/dcforum/posts/list/1091.page#7339</link>
				<pubDate><![CDATA[Thu, 18 Aug 2005 14:39:02]]> GMT</pubDate>
				<author><![CDATA[ Drago'Nish]]></author>
			</item>
	</channel>
</rss>
