forum rules | info | faq | gallery | download | shop | links | news | resources | magazine | chat | support | wiki | bugs | beta | forecast


Game Development >> User Contributions

Pages: 1
Manslayer101
Developer
**

Reged: Feb 22 2006
Posts: 502
Loc: Usa, or is it japan hmm...nope
Simplifying Class Systems Beta v1.0
      #676483 - Sat Jul 29 2006 06:42 AM

This is a WIP, i am working on a code that is customizeable for class systems (ex. Mercenary, Ninja, etc). This is for people new to c-script or for anyone that wants a template for making classes.

Right now it is very small and is to only point users in the right direction.

Editing the code is very simple, classes are defined under Class_Type. Each class is Class1, Class2...
Each ability for each class is like so

Ability(number of class)_(number of ability)
ex. Ability1_1, Ability1_2...

I have it both in dll and wdl format. dll is still written in cscript, it is just in dll for easy startup.

Class System Beta 1.0 (leads to download page on filefront)

for now it is so small that i will not post code here, the file is only 2kb, zip format

For people new to c-script you can change the names of the classes by defining them like below:

define Class1, Ninja;

And to add them to skills

define Ninja, Skill1; //or define Ninja, Flag1;


function main
{
Ninja = Class1;
////code for level below
}

to allow the name of the skill to be visible in Wed just put

//uses Ninja

above the action of the player or object it must be right above it like so:

//uses Ninja
action player_act

Note: keep in mind that this is to help people new or inexperienced to c-script, or it can help you if you are lazy and don't want to write your own template code

--------------------
"And now abides Faith, Hope, Love...but the Greatest of these is Love"

Simplifying Class Systems

-Peace, Manslayer101

Edited by Manslayer101 (Sat Jul 29 2006 07:18 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator   Email Post
Manslayer101
Developer
**

Reged: Feb 22 2006
Posts: 502
Loc: Usa, or is it japan hmm...nope
Re: Simplifying Class Systems Beta v1.0 [Re: Manslayer101]
      #681943 - Fri Aug 18 2006 11:49 PM

also you must change the Class_type to:

var Class_Type;

or

define Class_Type, skill1;

this way you do not get a read-only error.

i will update the code soon

--------------------
"And now abides Faith, Hope, Love...but the Greatest of these is Love"

Simplifying Class Systems

-Peace, Manslayer101


Post Extras: Print Post   Remind Me!   Notify Moderator   Email Post
Pages: 1

Quick Reply:
Options:

Add signature

Preview Reply






Extra information
3 registered and 3 anonymous users are browsing this forum.

Moderator:  Perro, mk_1, Nadester, checkbutton 

Favorite Topic! (toggle)
Print Topic

Forum Permissions
      You can start new topics
      You can reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 190

Rate this topic

Jump to

Powered by UBB.threads™ 6.5.2

forum rules | info | faq | gallery | download | shop | links | news | resources | magazine | chat | support | wiki | bugs | beta | forecast

Conitec Datensysteme GmbH · Dieselstr. 11c · 64807 Dieburg, Germany · Tel +49 (6071) 9252-0 · Fax +49 (6071) 9252-33 · mail
Conitec Datasystems, Inc · 5000 Thorne Drive, Suite F · La Mesa, CA 91941 · Tel +1 (619) 462-0515 · Fax +1 (619) 462-0519 · email
webmistress