Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Simplifying Class Systems Beta v1.0 #83697
07/29/06 03:42
07/29/06 03:42
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
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

Last edited by Manslayer101; 07/29/06 04:18.

- aka Manslayer101
Re: Simplifying Class Systems Beta v1.0 [Re: mpdeveloper_B] #83698
08/18/06 20:49
08/18/06 20:49
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
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


- aka Manslayer101

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1