RPG Tutorial 1: Experience and leveling

Topics regarding Scripting with Reality Factory
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

RPG Tutorial 1: Experience and leveling

Post by Jay »

Hello guys, on request of another user i have wrote a tutorial that explaines how to do:

-a basic scripted player
-player attributes
-implementing uses for stats like strenght, speed and stamina
-how to implement melee damage
-how to show an levelup-screen using flipbooks
-how to implement mouse control on the levelup-screen
-how to give experience to the player

it also gives a overview over scripted players and uses the genericplayer.s in scripts\sample as the default scripted player.

I suppose you already know how to add pawns, otherwise this tutorial is nothing for you.

be warned: it's big, 20 pages!

report any critics, positive and negative, here please.

EDIT: Oh yes, i forgot: For allowing mouse input to be made, use the MouseControlledPlayer(false); and ShowMouse(true); commands in the Setup order. Otherwise the mouse will not be visible and so there will be no mouse input.
Attachments
RPG Tutorial 1 (Experience and Leveling).zip
(506.87 KiB) Downloaded 549 times
Last edited by QuestOfDreams on Sat Aug 08, 2009 12:30 pm, edited 3 times in total.
Reason: Attached file
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

Excellent work!! :)
User avatar
Destron
Posts: 520
Joined: Thu Apr 19, 2007 7:30 pm

Post by Destron »

awesome, downloading now! :)
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Post by bernie »

A million thanks Jay. This is much needed by a lot in this community.
User avatar
LtForce
Posts: 437
Joined: Wed May 03, 2006 11:15 am
Location: Vilnius, Lithuania

Post by LtForce »

Great work, man!
Lithuanians for Georgia!
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Excellent tutorial, Jay! :)

I'm sure a lot of people will find this useful, since so many are in need of a scripted player. I think this thread should be stickied.

Thanks.
Pain is only psychological.
mackietf024
Posts: 43
Joined: Tue Aug 14, 2007 5:35 am

Many Thanks.^_^

Post by mackietf024 »

:P

Thanks a lot jay, with this we can take the rf rpg genre into a whole new level.^_^ 8)
User avatar
LtForce
Posts: 437
Joined: Wed May 03, 2006 11:15 am
Location: Vilnius, Lithuania

Post by LtForce »

I've noticed that the topic is called RPG tutorial 1:... Is there going to be a second one? If so could it be about making inventory please?
Lithuanians for Georgia!
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

Very nice. Thanks Jay.
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

LtForce wrote:I've noticed that the topic is called RPG tutorial 1:... Is there going to be a second one? If so could it be about making inventory please?
That's exactly the plan. :wink:
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

I converted it to .PDF for you. You can download the PDF version at http://www.mediafire.com/?4c3xwb9gmbf .
User avatar
LtForce
Posts: 437
Joined: Wed May 03, 2006 11:15 am
Location: Vilnius, Lithuania

Post by LtForce »

Jay wrote:
LtForce wrote:I've noticed that the topic is called RPG tutorial 1:... Is there going to be a second one? If so could it be about making inventory please?
That's exactly the plan. :wink:
Yey
Lithuanians for Georgia!
User avatar
gamerX
Posts: 40
Joined: Sat Apr 21, 2007 12:40 am

thx

Post by gamerX »

Thanks Jay you are the best. This is just what i needed, it helps me a lot with my RPG project.
YOUR IMAGINATION IS THE ONLY LIMIT!
BELIEVE ME!
mackietf024
Posts: 43
Joined: Tue Aug 14, 2007 5:35 am

@topic

Post by mackietf024 »

ei pips,1 question

with regards for skills for my character:
can skills be represented with just attibutes or it requires a whole new scripting?

#the tutorials the best!^_^
Love Counquers Everything.^_^
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

If you add new attributes, you have to script in the formulas (formulae?) to apply to those attributes.
Post Reply