Author Topic: Simple RPG Kit  (Read 2669 times)

This will be my first project that is Add-on related. This is a learning process for scripting. If you wish to help, contact my MSN.


To Do:

Player Type - Levelup Player: Every 1000 damage you do you get +25 health.

At 5, 1500 XP Required,
At 10, 2000 XP Required ETC.

Max Level: 50

Good working shield: Will post model, Right click to block.


Many Swords for different damage levels: So far:

Training stick: 10 Damage
Metal Rod: 15 Damage
Blunt Sword: 20 Damage
Sword (Original): 25 Damage
Mace: 30 Damage
-------------------
Dungeon - Plastic Splitter: 100 Damage (If you read up, this would not kill level 50s in one hit. To my calculations, 50s have 1325 HP.)

Add Ideas.
« Last Edit: October 08, 2008, 06:20:27 PM by Zenthos »

You don't learn scripting by asking others to help and getting your mom to model for you.

I lol'd.

ur mom is modeling 4 u.

You don't learn scripting by asking others to help and getting your mom to model for you.

Should've said that, shes gonna let me use the software she works for. And she told me it exports to Autocad, which MS3d can import. She won't model for me.

Plus when did I say I will ask people how? Help as in help, I don't expect space guy to come and help me.

Scripting isn't the same as modeling Bling.
And help only means do everything for me to Kunit, everyone else it means "can you give some tips or point out what I did wrong?"

XD am I a noob? Im just trying to look at scripts to learn, is that impossible?


Thats how I started.

Osweet. I found the torque functions guide, there doesn't seem to be a thing that lets me add up the total damage. Is there? I've searched damage, player, and all kinds of things. I found all the playertype commands, that'll be useful for when I get more complicated.

Question: Do good scripters use the torque functions guide? How would you remember all the fuctions? Or is there a pattern im not getting?

I have never used that guide.
For finding functions, I open up console, hit space, and repeatedly hit tab till I find something interesting, I end it with (); to give myself an error telling me I don't have the correct ammount of args. Well, I do this because it tells me what those args do.

I have never used that guide.
For finding functions, I open up console, hit space, and repeatedly hit tab till I find something interesting, I end it with (); to give myself an error telling me I don't have the correct ammount of args. Well, I do this because it tells me what those args do.


Oh wait you script in game?

Ok. What is the function to say something in the chat? Like: You have now reached level 2! or w/e.

messageAll(messagetype,message);

messagetype will usually be ' ' (That's two single quotes).
message is your message. It goes between " " and you can use \c0-\c8 (not /, \) to change color.

For example:

messageAll('',"\c2Zenthos \c3leveled up!");

Falcon that tells everyone.

messageclient(client object,message type,string,args);
Example would be:
messageclient(%client,'','<color:ffffff>You have now reached level %1!',%client.level);
« Last Edit: October 08, 2008, 04:35:19 PM by Chrono »

Thank you, Im guessing onPlayerDamage isn't a fuction XD.

Tell me if anyone finds a function that can say something like:

onTotalPlayerDamage = 1000;
         maxEnergy = 125;*



*Would I use maxEnergy for changing the total health?

maxDamage = 100;
Then change around Armor::damage
One second I'll go grab the code for this.

SIMPLIFIED:

Everytime you do 1000 damage, you get 25 health.

It would make sense to have it make you earn more XP, because if 50s did 100 damage per hit, they would gain a level in 10 hits :/ not good.


GOT IT: Every 5 levels you get a new weapon with new damage if you do the Dungeon, I will just multiply that by 100.

MORE COMPLICATED:


It saves the level into the server, so I can make triggers based on that. And its easier to level at level 1, then 50. For now, it will be just as fast.

XP Bar.


EVEN MORE COMPLICATED:

Armor/Shield System.

XP+Health bar.

Is there any  way to add another Health bar? Because both health and XP would be nice.

Magic System, another bar, mana.

Would have a set of items that drained your mana when used.

Bow system. (Well, just a sets of different power bows.)
« Last Edit: October 08, 2008, 05:01:19 PM by Zenthos »