[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Question regarding some code I am working on...  XML
Forum Index -> Druids RPG
Author Message
KampKounslr


[Avatar]

Joined: 07/06/2005 06:27:24
Messages: 13
Location: Tucson, AZ
Offline

Some reason, I cant register on Atari's site, so I thought I might come here... hope its not a prob.

Anyhows, I'm getting a compiler error on line 16: Error, Bad, or Missing expression in '='

Heres the code in question:

static simulated function bool HasActiveArtifact()
{
local inventory inv;

for (inv=inventory;inv!=none;inv=inv.inventory)//searches through inventory chain
{
if (Inv.IsA('RPGArtifact') && RPGArtifact(Inv).bActive)
return true;
}
return false;


In case you're wondering, I'm coding a version of AdrenalineSurge that doesn't work while an artifact is active (fine while just a combo though; gunna see how it works and possibly code that out later, just just Surge for now). Reason is that I notice with a very high surge ability, one can prettymuch run Invulnerability nonstop, and this will make it a little less feasable. Help?

[WWW]
Shantara

Wicked Sick!
[Avatar]

Joined: 12/19/2004 18:35:28
Messages: 861
Location: SLC, Utah
Offline

I don't have any help for you on the coding part, but I am curious as to how you think someone can run invulnerability nonstop with surge. On my big character I have surge maxed, and even with a mini of energy 3 and resupply 2 I can't keep it going for even a whole wave of titans.

I'm wondering what it will take for my country to rise,
First we admit our mistakes, then we open our eyes
--Ani Difranco

My skin: http://www.ut2003hq.com/pafiledb2/pafiledb.php?action=file&id=5094
v0rTeX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 20:59:52
Messages: 562
Offline

On your server (DC) maybe you cant. But I have seen (and owned) servers that if you set certain monsters to be worth many more points than normal because of the difficulty of killing them, you can run the Globe for an entire wave without trouble.

Not to mention if you run a server with much higher stat caps its even easier as well.

In fact, I recently removed Surge from our server about a month ago because several of us over level 150 could keep artifacts going almost indefinitely with surge.

Now if Surge stopped 'surging' when an art was active it wouldnt be as exploitable.
auqalung77

Killing Spree

Joined: 06/10/2005 13:23:43
Messages: 39
Offline

u can not terminate ur statment twice
if this ( is a terminator
u may want use a , or &&.
another general rule is have least 1 space between statment and comment

I guessing this is a c++ type environent.
auqalung77

Killing Spree

Joined: 06/10/2005 13:23:43
Messages: 39
Offline

(= terminator
auqalung77

Killing Spree

Joined: 06/10/2005 13:23:43
Messages: 39
Offline

( ; )
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

I thought in the latest versions none of energy leech, adrenaline drip or adrenaline surge worked while you had a combo or artifact running? I thought it was only a +energy weapon you could use to keep your adrenaline up?

Also, I think that none of them get energy back in retaliation either?

Can anyone who knows the answer clarify please?
Peldor



Joined: 04/13/2005 15:08:07
Messages: 23
Location: Winston-Salem, NC
Offline

Energy leech and adrenaline surge both work for certain. Adrenal drip does not, I think.

I wouldn't want them all turned off on this server. The skill restrictions are tough enough that us poor adrenaline junkies need all the help we can get.
Nonya-Biz

Killing Spree

Joined: 06/05/2005 02:21:02
Messages: 59
Offline

so what is inventory it dosent look like that is in the code for xPawn or anything so if inventory == none then there is nothing or its not even diffined as a variable and that would explain the missing expression

the loop its self apears fine just probly needs to have an inventory variable
KampKounslr


[Avatar]

Joined: 07/06/2005 06:27:24
Messages: 13
Location: Tucson, AZ
Offline

One item that we're trying on my server is allowing players to get some skills to very high levels... so as to make the game more disparate in the skilltrees players can use.

Auqalung: The ; in the For statement (which is the line in question, sorry for not stating that in the initial post) is what seperates the different parts of the statement.

Szlat: Adren Drip does _not_ work during Combo or Arty use, however Surge does. Don't have energy leech, as I do believe thats only on the DC server.

Peldor: My goal is to actually allow adren junkies more help, at the cost of removing some exploitability. I'm hoping to let players get to Level10 on many skills! Granted, this can cause some gameplay balance issues of their own, but I think i have things covered. If not, back to coding I go!

Nonya: You found it; i needed to make it inv=inv.inventory... Thanks a ton!

[WWW]
TheDruidXpawX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 18:32:13
Messages: 1946
Offline

v0rTeX wrote:
Now if Surge stopped 'surging' when an art was active it wouldnt be as exploitable. 


It does in the 2.1 release.


Skin download: http://www.disastrousconsequences.com/dcforum/posts/list/1189.page

The fundamental problem is this: The first word we learn as children is NO. From that point forward society teaches women that saying no isn't polite, and society teaches men to respect those who wont take no for an answer.

The world is what you make of it, my friend. If it doesn't fit, you make alterations. -- Stella, The Morning Star
TheDruidXpawX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 18:32:13
Messages: 1946
Offline

Szlat wrote:
I thought in the latest versions none of energy leech, adrenaline drip or adrenaline surge worked while you had a combo or artifact running? I thought it was only a +energy weapon you could use to keep your adrenaline up?  


All of these statements should be correct. In any event it doesn't matter as much in DruidsRPG166 since you can only buy the adrenaline skills if you take the loaded artifacts route.

Skin download: http://www.disastrousconsequences.com/dcforum/posts/list/1189.page

The fundamental problem is this: The first word we learn as children is NO. From that point forward society teaches women that saying no isn't polite, and society teaches men to respect those who wont take no for an answer.

The world is what you make of it, my friend. If it doesn't fit, you make alterations. -- Stella, The Morning Star
v0rTeX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 20:59:52
Messages: 562
Offline

TheDruidXpawX wrote:

v0rTeX wrote:
Now if Surge stopped 'surging' when an art was active it wouldnt be as exploitable. 


It does in the 2.1 release.

 


Unfortunately it doesnt. I just tested it in instant action with just RPG and Quad Jump.

A warlord is 10 points and therefore 10 adrenaline. With lvl 2 surge he is worth 20 adrenaline. Even with triple damage running he is still worth 20 adren.

Myst did fix drip and I can only guess whether or not Leech keeps going with active arts or not but Surge definitely still works when arts are active.
 
Forum Index -> Druids RPG
Go to: