| 06-09-2003, 02:17 AM | #1 |
I've trouble with the above mentioned. The lines seem correct but the order doesn't work. When the dialog button to train that unit is clicked, nothing happens. This is what I did. Event: Dialog button is clicked for XMenu Condition: Clicked button == XButton[0] Action: If (XstructureIsPresent == true) then (Order Xstructure to train/upograde to a Xunit) else (display "Xstructure absent) Xstructure is a unit variable which stores the structure that has the option to train Xunit. XstructureIsPresent is a boolean which is set to true when the player builds Xstructre. Any help is appreciated, thank you. |
| 06-09-2003, 04:35 AM | #2 |
My best guess is it is not that piece of code.. But perhaps the actually dialog code that you are using... You might want to post that as well.. Seems you might have an error with the likes of that. I see nothing really majorly wrong from what I see... But I can go blind at times emote_sweat |
| 06-09-2003, 11:24 PM | #3 |
When the structure is not built and the player presses the dialog button, the "Xstructre is absent" message is displayed correctly, which for me indicates that the dialog side is working. |
