• 0

    posted a message on Creating a custom tooltip for a weapon

    @sonnert: Go

    If I'm not mistaken, the tooltip is a part of the Button you are using with the weapon. Select your weapon, then look for the Button in that list that shows what is linked to your current selection. You should set the "Alert Tooltip" there.

    Edit: I'm talking about when a unit is equipped with a Weapon which is an item. That might be different than what you are talking about.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Real# variables

    @Thebillsta: Go

    A better solution would be to simply perform a check every time you modify your reals. For example, add 1 to realVariable, then the very next Action would be an If Then, saying if realVariable is above 60, set it to 60.

    If you do this all throughout your code, everywhere you modify the variables you want to limit, it will work perfectly and efficiently.

    Edit: Actually, an even better way would be to place all the lines that modify your variable inside If statements, like so:

    If (realVariable < 60) Then (Add 1 to realVariable) Else Do nothing

    Posted in: Miscellaneous Development
  • 0

    posted a message on Stop my unit from running away when being attacked?

    @Nothing5: Go

    Couldn't you use Abilities - Response on the Unit Data type and change it from Flee?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Beam Help

    @Hoori: Go

    I am having this same issue. I'm trying to duplicate the Medivac Heal ability, and my new ability works fine except for the fact that the beam does not appear, and the target effect is stuck infinitely looping.

    I haven't been able to figure out a solution yet.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [SOLVED] Get number of players.

    @SirLyrrad: Go

    Does All Players or Active Players exclude CPU players?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Run Trigger with Parameters?

    Hi,

    I'm trying to set up an NPC that can give the player a quest (I'm using the GUI). The idea is that the player can walk up to the NPC, hear his story and be given an option whether or not to accept the quest. I decided to do this using "Display Screen Button" despite having no prior experience with it, and I think I could get it working, if not for this problem.

    It's a recurring problem I've had with several other triggers. I want to be able to run some stuff in a trigger, for example doing things for a specific player whose unit entered such and such region, and then in some way start another trigger with that trigger also knowing which specific player I was referring to in the first trigger. I cannot figure out how to do this. Is there a way to run a trigger and pass in an existing variable, so that the trigger has different results despite having no events?

    I tried using global variables as some kind of workaround for this, but I couldn't figure out any efficient method.

    http://img26.imageshack.us/img26/7121/probki.jpg

    Thanks for any help.

    Edit: Wow I just found the solution. Ctrl + Alt + F in the trigger window.

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.