View Single Post
Old 06-28-2013, 03:16 PM   #10
Fair Strides
@Fair Strides 2
Witty Programmer
Fair Strides 2's Avatar
Status: Moderator
Join Date: Jan 2012
Location: Oregon, United States
Posts: 756
Current Game: Master of Orion 2
Originally Posted by duster View Post
You missunderstood me.I wanted to know if Fallen Guardian ment that i should make another band with the other script(wich works perfectly).I wish to know if there is a way not to make it.Meaning to have one band do both actions just by being pressed a second time.
Oh! In that case:

You'll need to make a global boolean(Pretty easy, but don;t have the time to explain it now) and check it each time the band is used. For example:
void main()
    if(GetGlobalBoolean("Armband_is_on") == 1)
        <Deactivate meditating>
        SetGlobalBoolean("Armband_is_on", 0);
        return; // Makes it so we don't do the part below, otherwise you'd never leave
    if(GetGlobalBoolean("Armband_is_on") == 0)
       <Activate meditating>
       SetGlobalBoolean("Armband_is_on", 1);

All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.7 is LIVE!!! Check it out here.
Fair Strides 2 is offline   you may: quote & reply,