"I can't make games" he said.
"I can't draw" he said.
CHICKY, YOU CHICKY BASTARD!
"I can't draw" he said.
CHICKY, YOU CHICKY BASTARD!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
// main global script
int weapon1_cost; // define variables available from all functions in the global script
int weapon2_cost;
int weapon3_cost;
function game_start {
weapon1_cost = 60;
weapon2_cost = 20;
weapon3_cost = 40;
}
export weapon1_cost; // export variables to make them available in room scripts
export weapon2_cost;
export weapon3_cost;
// main script header
import int weapon1_cost; // import global script variables to make them available in room scripts
import int weapon2_cost;
import int weapon3_cost;
// main global script
int weapon_cost[3]; // define array with a dimension/size of 3
function game_start {
weapon_cost[0] = 60;
weapon_cost[1] = 20;
weapon_cost[2] = 40;
}
export weapon_cost; // export array to make it available in room scripts
// main script header
import int weapon_cost[3]; // import array to make it available in room scripts
// main global script
myWeaponStruct weapon1; // make variables from the struct defined in the script header (see below)
myWeaponStruct weapon2;
myWeaponStruct weapon3;
function game_start {
weapon1.cost = 60;
weapon1.power = 30;
weapon1.description = "Mace";
weapon2.cost = 20;
weapon2.power = 10;
weapon2.description = "Dagger";
weapon3.cost = 40;
weapon3.power = 20;
weapon3.description = "Sword";
}
export weapon1; // export variables to make them available in room scripts
export weapon2;
export weapon3;
// main script header
struct myWeaponStruct {
int cost;
int power;
String description; // Note: "String", not "string"
};
import myWeaponStruct weapon1; // import variables to make them available in room scripts
import myWeaponStruct weapon2;
import myWeaponStruct weapon3;
// main global script
myWeaponStruct weapons[3];
function game_start {
weapons[0].cost = 60;
weapons[0].power = 30;
weapons[0].description = "Mace";
weapons[1].cost = 20;
weapons[1].power = 10;
weapons[1].description = "Dagger";
weapons[2].cost = 40;
weapons[2].power = 20;
weapons[2].description = "Sword";
}
export weapons;
// main script header
struct myWeaponStruct {
int cost;
int power;
String description;
};
import myWeaponStruct weapons[3];
// main global script
myWeaponStruct weapon1; // make variables from the struct defined in the script header (see below)
myWeaponStruct weapon2;
myWeaponStruct weapon3;
function game_start {
weapon1.cost = 60;
weapon1.power = 30;
StrCopy(weapon1.description, "Mace");
weapon2.cost = 20;
weapon2.power = 10;
StrCopy(weapon2.description, "Dagger");
weapon3.cost = 40;
weapon3.power = 20;
StrCopy(weapon3.description, "Sword");
}
export weapon1; // export variables to make them available in room scripts
export weapon2;
export weapon3;
// main script header
struct myWeaponStruct {
int cost;
int power;
char description[200]; // instead of "string description;"
};
import myWeaponStruct weapon1; // import variables to make them available in room scripts
import myWeaponStruct weapon2;
import myWeaponStruct weapon3;
// main global script
myWeaponStruct weapons[3];
function game_start {
weapons[0].cost = 60;
weapons[0].power = 30;
StrCopy(weapons[0].description, "Mace");
weapons[1].cost = 20;
weapons[1].power = 10;
StrCopy(weapons[1].description, "Dagger");
weapons[2].cost = 40;
weapons[2].power = 20;
StrCopy(weapons[2].description, "Sword");
}
export weapons;
// main script header
struct myWeaponStruct {
int cost;
int power;
char description[200];
};
import myWeaponStruct weapons[3];
QuoteThis dude's wife is about to give birth and has promised that whatever you name your soundtrack as WILL be the baby's name!!!
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 2.493 seconds with 16 queries.