Announcement

Collapse
No announcement yet.

Messagbox SLIC problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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);
    	}
    }

  • #2
    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.
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Hmm, I thoght Alexander had alertboxes from alertboxes. Anhow I'll try.

      Comment

      Working...
      X