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 Menustruct ItemStats{
int buy;
int sell;
String name;
};
ItemStats myitems[10];
myitems[0].buy=10; //line 96
myitems[0].sell=5;
myitems[0].name="Poster";
...
QuoteAs for dialogs the simplest approach would be to "run-script N" and then call Speech() from within dialog_request -- would require some work to arrange them though, so that it would be easy to keep track of what speeches for what.
Quoteint gameloops = ((StrLen(text) / game.text_speed) + 1) * GetGameSpeed();
WaitMouseKey(gameloops);
function Speech(int who, int Face, int Color, const string text){Ã, Ã, Ã, //who is just there to make it easier to see who is speeking
Ã, SetButtonPic(5, 0, 1, Face); //now i don't need any views!
Ã, SetLabelColor(5, 1, Color); //characters text color
Ã, SetLabelText(5, 1, text); //the text is displayed on a label
Ã, GUIOn(5); //after all the textgui is turned on
Ã, WaitMouseKey(800); //and stays on till wait is over
Ã, TextLabel.Text=""; //text is erased
Ã, SetButtonPic(5, 0, 1, 145); //the pic also
Ã, GUIOff(5); //and the gui is of
Ã, }
Quote
'In: savegames with screenshots"
error (line 80): local variable cannot have the same name as an import
static function sgs_i::reget_slots()
{
int i=0;
Label *li; //line 80
string temp;
ran_damage=Random(es_damage);
[...]
if(ran_damage==0){ damage=1;}
[...]
ran_hit=Random(es_hit);
[...]
if(ran_hit==0){ hit=1;} //means the char hits
if(ran_hit==1){ hit=0;} //means the char misses
[...]
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.036 seconds with 14 queries.