Author Topic: StatMod Help  (Read 1478 times)

K thanks.


I have it working... I can't believe it I learned the sintax of torquescript yesterday.


Now, I need to get it to work with vehicles and bots:

Current Code:
Code: [Select]
-snip-

I tested by attacking a bot, and making a bot attack me.

Now, does Armor::Damage apply to bots and vehicles?

Obviously not vehicles, but what exactly are bots object wise? (like horses)

I want to be able to modify their stats.
« Last Edit: October 10, 2009, 01:40:08 AM by Zenthos »

I have it working... I can't believe it I learned the sintax of torquescript yesterday.
Wow, you learned faster than I did.
Now, does Armor::Damage apply to bots and vehicles?

Obviously not vehicles, but what exactly are bots object wise? (like horses)

I want to be able to modify their stats.

Any player or player-like bot.
That includes anything that doesn't tip over. Like horses, zombies, rowboats (default one) and turrets/cannons.

so is the script not working because of the getVariable("Player","DamCo",%sourceObj.sourceObject) ?


Or wait, do bots not have compatibility in VCE?



Well considering bots don't have a brick group, they probably don't work with VCE.
You'll have to go back to normal vars.

Well considering bots don't have a brick group, they probably don't work with VCE.
You'll have to go back to normal vars.


What if I set the variable on the vehicle...



Edit: I loving win.
Code: [Select]
if(%sourceObj.sourceObject.getClassName() !$= "Player")
{
%typedc = "Vehicle";
%typedm = "Vehicle";
}
else
{
%typedc = "Player";
%typedm = "Player";
}


Complete stat mod, yeayayayaya

First mod.
« Last Edit: October 09, 2009, 08:32:29 PM by Zenthos »