In that case, shouldn't he use on_event(eEventEnterRoomBeforeFadein) and maybe eEventLeaveRoom to destroy it manually and re-initialize it. And then, he can even specify certain rooms where he doesn't want it.
~Trent
~Trent
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 MenuQuote from: KhrisMUC on Sun 09/11/2008 23:20:06
Create a custom property, type bool, initial value false, call it "tint".
Then add this to rep_ex:Code: ags // this line before rep_ex: int troom, tobj; // the following inside Object*o = Object.GetAtScreenXY(mouse.x, mouse.y); if (o == null) { if (troom == player.Room) { object[tobj].RemoveTint(); troom = 0; tobj = 0; } else { if (o.GetProperty("tint")) { if (o.ID != tobj) { o.Tint(150, 150, 0, 100, 100); tobj = o.ID; troom = player.Room; } } }
Not tested!
Quote- on verbcoin icon release: speak/do actionbe - on verbcoin icon release: speak/look/do action ? It's been a while since I've played CMI or any Verbcoin game, so I could be wrong.
function ResizeGUI () {
int txtWidth = GetTextWidth(lblReminder.Text, eFontWhatever);
int txtHeight = GetTextHeight(lblReminder.Text, eFontWhatever, txtWidth+5);
gReminder.SetSize(txtWidth+10, txtHeight +40);
gReminder.Centre();
lblReminder.Width=txtWidth;
lblReminder.Height=txtHeight;
lblReminder.SetPosition(10, 40);
btnExitRemind.SetPosition( (((txtWidth+10)/2)-15), 10);
}
function AddReminder (String textToAdd) {
if (lblReminder.Text==null) lblReminder.Text="";
lblReminder.Text = lblReminder.Text.Append(textToAdd.Append("["));
ResizeGUI();
}
function RemoveReminder (String textToRemove) {
String lookFor = textToRemove.Append("[");
lblReminder.Text = lblReminder.Text.Replace(lookFor, "");
ResizeGUI();
}
export INTNAME(or at least after the declaration). Then in the global header, write
import int INTNAME
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.055 seconds with 14 queries.