Thread Tools
Old February 9, 2001, 06:41   #1
heardie
Prince
 
heardie's Avatar
 
Local Time: 20:54
Local Date: October 31, 2010
Join Date: Aug 1999
Posts: 684
Messagbox SLIC problem
Hmm, I cant get message boxes to appear from another message box. Any clue?

Code:
alertbox 'RHOldManPlot' {
	Show(); Title(ID_BLANK);
	Text(ID_RH_OLDMAN_PLOT);
	Button(ID_DISAGREE) {
		Kill();
		Message(g.player, 'RHDisagree');
	}	
	Button(ID_GIVE_MONEY) {
		Kill();
		Message(1, 'RHGiveMoney');
	}
	Button(ID_TAKE_MAP) {
		Kill();
	}
}

alertbox 'RHDisagree' {
	Show(); Title(ID_BLANK);
	Text(ID_RH_OLDMAN_DISAGREE);
	GameOver();
}

alertbox 'RHGiveMoney' {
	Show(); Title(ID_BLANK);
	Text(ID_RH_OLDMAN_GIVEMONEY);
	AddGold(g.player, -100);
	if (random(4) != 0) {
		Text(ID_RH_OLDMAN_SUCCESS);
	}
	else {
		Text(ID_RH_OLDMAN_FAIL);
	}
}
heardie is offline  
Old February 9, 2001, 07:37   #2
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 11:54
Local Date: October 31, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
What if you replace all alertboxes with messageboxes, does it work then? I know for sure it should work with messageboxes but don't think I ever tried this with alertboxes. If it turns out it only works with messageboxes, you could try and use DisableClose to prevent the player from closing the message with the wrong button.
Locutus is offline  
Old February 9, 2001, 23:42   #3
heardie
Prince
 
heardie's Avatar
 
Local Time: 20:54
Local Date: October 31, 2010
Join Date: Aug 1999
Posts: 684
Hmm, I thoght Alexander had alertboxes from alertboxes. Anhow I'll try.
heardie is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:54.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team