...I cant dwl. "we encontered a error"


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 file
struct Charas{
int str;
};
#sectionstart game_start // DO NOT EDIT OR REMOVE THIS LINE
function game_start() {
// called when the game starts, before the first room is loaded
Charas Stiletto;
Stiletto.str = 10;
#sectionstart repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {
// put anything you want to happen every game cycle here
String str = String.Format("%d", Stiletto.str);
strlabel.Text = str;
#sectionstart repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {
String str;
String dex;
String lvl;
StrFormat(str, "d%", Stiletto.str);
SetLabelText(2, 5, str);
#sectionstart game_start // DO NOT EDIT OR REMOVE THIS LINE
function game_start() {
struct Charas {
int str;
int dex;
int lvl;
};
Charas Stiletto;
Stiletto.str = 10;
Stiletto.dex = 8;
Stiletto.lvl = 1;
#sectionstart repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {
int str;
int dex;
int lvl;
StrFormat(str, "d%", Stiletto.str);
SetLabelText(2, 5, str);
Interface text
You can easily display static text on interfaces. For example, the Sierra-style interface displays the score in the status bar.
To add text to a GUI, you add a label. Click the "Add label" button, then drag out a rectangle like you did when adding a button. You can change the text displayed in the label by editing the "Text" property. Notice that the text automatically wraps round to fit inside the rectangle you drew.
As well as typing normal text into the label, you can add some special markers which allow the text to change during the game. The following tokens will be replaced with the relevant values in the game:
@GAMENAME@ The game's name, specified on the Game Settings pane
@OVERHOTSPOT@ Name of the hotspot which the cursor is over
@SCORE@ The player's current score
@SCORETEXT@ The text "Score: X of XX" with the relevant numbers filled in.
@TOTALSCORE@ The maximum possible score, specified on the Game Settings pane
Example: You have @SCORE@ out of @TOTALSCORE@ points.
The Properties window also allows you to align the text to left, right or centre, as well as change its font and colour.
if ((button=5) {
if ((getglobalint(0) = 1))
Setbuttonpic(2,5,1,0); // remove the button pic
Addinv (1); // Add the item 1 back to inv
SetglobalInt(0,0);
wait(5);
}
else if ((getglobalint(0) = 0) && (player.activeinv =1))) { // I dont remember right now the active inv command, but this line says "if you have in active inv the item 1 and GlobalInt =0"
SetButtonPic(2,5,1,2); // Chance button to weapon
LoseInv (1); // Lose the item 1
SetGlobalInt(0,1);
wait(5);
}
}
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 0.132 seconds with 16 queries.