Hmm, I feel rather silly for not being able to figure this out, but:
Say I want Player 1 and Player 2 to be able to see the WHOLE map until a trigger has been called. How do I do it? I can only figure it out for Player 1 since I can only destroy revealers for "last created revealer" - even if I create variables for revealers, I cannot reference them when creating one.
Hmm, I tried, but I don't seem to be able to follow this.
I create the global variable, name it "Revealers", set it to "Revealer", check the array box - so far so good.
But what now? When I use the trigger "Visibility - Create a visibility revealer for player 1 within Area" I can't see a way to reference to the created global variable. I guess I'm totally on the wrong path?
edit: Ah okay, set variable... okay, let's try this - though I'm still not quite sure about it.
First you make revealer, it will have nothing to do with the variable. (variables just hold information, as of right night, your variable is empty, you want to fill it.)
So what you do is make your Revealer, just like you are, then on the next line
Variables - Set Variable: Revealer[Index 0] = Last created Revealer
THen on the next line, make the next revealer for player 2
Then on the next line, save that to the var
Variables - Set Variable: Revealer[Index 1] = Last created Revealer
then, you can use the variable to remove them later.
Oh god, thanks man. It works... I'm not too much into scripting, but everytime I get something, it's like a new world opens up in front of me ;) Thanks again!
I know what you mean, theres nothing like learning something new, you just start to think of all the new things you can do, its why I love programming so much.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
Exactly. Currently, I'm doing like a micro challenge map with selectable arenas. Figuring this out solved a lot of problems when showing the different arenas to the player wo is selecting it (and the players who are just looking over his shoulder).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hmm, I feel rather silly for not being able to figure this out, but:
Say I want Player 1 and Player 2 to be able to see the WHOLE map until a trigger has been called. How do I do it? I can only figure it out for Player 1 since I can only destroy revealers for "last created revealer" - even if I create variables for revealers, I cannot reference them when creating one.
I don't get this.
hehe, hit CTRL+B (on the left side) to make a global var.
Name it "Revealers: from the drop down, select "revealers" then put a check in the array box.
Then
Make revealer for player 1
Set var: Revealer[0] = last created revealer
Make revealer for player 2
set var: revealer[1] = last created revelar
then when you want to remove them
remove revealer = Reavealer[0] ...ect
@Molsterr: Go
Hmm, I tried, but I don't seem to be able to follow this. I create the global variable, name it "Revealers", set it to "Revealer", check the array box - so far so good.
But what now? When I use the trigger "Visibility - Create a visibility revealer for player 1 within Area" I can't see a way to reference to the created global variable. I guess I'm totally on the wrong path?
edit: Ah okay, set variable... okay, let's try this - though I'm still not quite sure about it.
yes and no, your on the right path
First you make revealer, it will have nothing to do with the variable. (variables just hold information, as of right night, your variable is empty, you want to fill it.)
So what you do is make your Revealer, just like you are, then on the next line
Variables - Set Variable: Revealer[Index 0] = Last created Revealer
THen on the next line, make the next revealer for player 2
Then on the next line, save that to the var
Variables - Set Variable: Revealer[Index 1] = Last created Revealer
then, you can use the variable to remove them later.
To remove them
@Molsterr: Go
Oh god, thanks man. It works... I'm not too much into scripting, but everytime I get something, it's like a new world opens up in front of me ;) Thanks again!
@Namsom: Go
I know what you mean, theres nothing like learning something new, you just start to think of all the new things you can do, its why I love programming so much.
@Molsterr: Go
Exactly. Currently, I'm doing like a micro challenge map with selectable arenas. Figuring this out solved a lot of problems when showing the different arenas to the player wo is selecting it (and the players who are just looking over his shoulder).