Quantcast
Channel: LucasForums - Holowan Laboratories
Viewing all articles
Browse latest Browse all 507

TSl script with All In

$
0
0
1st post.

Not sure were this should go, I'm guessing a moderator will give me a heads up and correct the situation.

So I decided to go a little crazy and through all TSL buffs, including all powers from each tree in a mega force power.

My problem is it seems to work randomly (sort of). I'll try to be a bit more specific.
Perugus II:
When I'm solo, no party members, i got it All, all three speed mastery's, valor mastery's, resists, ...inspire followers, the deal. In the journal > messages > effects it looked somewhat like this:

Speed Burst
Knight Speed
Speed Mastery
Force Aura
Force Shield
Force Armor
Force Mind
Knight Mind
Mind Mastery
Resist Force
Force Immunity
Resist Cold Heat Energy
Resist Poison Disease Sonic
Master Energy Resistance
Force Barrier
Improved Force Barrier
Master Force Barrier
Battle Meditation Pc
Improved Battle Meditation Pc
Master Battle Meditation Pc
Force Body
Improved Force Body
Master Force Body
Inspire Followers I
Inspire Followers II
Inspire Followers II
Inspire Followers IV
Inspire Followers V
Inspire Followers VI
Force Sight

When I'm in a party however I don't seem to get that result.

Now the idea is to go through all specific powers, apply each of them to all non enemy creatures in a specific radius.

something like:
Code:

void main () {

        // variables
        // (...)
        for ( ; nSpell < 282; nSpell++ ) {

                oCreature = GetFirstObjectInShape ( SHAPE_SPHERE, fRange, GetLocation ( OBJECT_SELF ), FALSE, OBJECT_TYPE_CREATURE );

                while ( GetIsObjectValid ( oCreature ) ) {

                        if ( !GetIsEnemy ( oCreature ) ) {

                                switch ( nSpell ) {
                                       
                                        (...)
                                }
                        }
                        oCreature = GetNextObjectInShape ( SHAPE_SPHERE, fRange, GetLocation ( OBJECT_SELF ), FALSE, OBJECT_TYPE_CREATURE );
                }
        }
}

I'm not sure if the game engine is not able to handle it, or my logic is flawed. I'm betting on the latter :)

Full version, a little extensive I fear:
Show spoiler

I appreciate your time. Thank you very much.

Viewing all articles
Browse latest Browse all 507

Trending Articles