Set variable of specific object

Discuss game development design and post your game ideas

Post » Sat Feb 21, 2015 11:04 pm

\/ Sorry if this is in the wrong forum \/

As you can see in the attachement, the highlighted part, it's about Earth | Set ships to Earth(1).ships / 2.
That line changes ships for all objects called Earth.
How can I make it something like this: Set Earth(1).ships to Earth(1).ships / 2.
I have not been able to figure this out myself, and I could also not find it by using Google.
lol.png
You do not have the required permissions to view the files attached to this post.
Last edited by teunissenstefan on Sat Feb 21, 2015 11:25 pm, edited 1 time in total.
B
2
Posts: 4
Reputation: 158

Post » Sat Feb 21, 2015 11:20 pm

Add "For each Earth" to the event.
ImageImageImage
B
71
S
19
G
179
Posts: 3,478
Reputation: 102,672

Post » Sat Feb 21, 2015 11:21 pm

But I don't want it for each earth, just one, a specific one.
B
2
Posts: 4
Reputation: 158

Post » Sun Feb 22, 2015 12:09 am

Then you have to specifically do a Pick all, then Pick that one by UID (is best), make your changes, and then continue.
ImageImageImage
B
71
S
19
G
179
Posts: 3,478
Reputation: 102,672

Post » Sun Feb 22, 2015 12:12 am

Yeah. but how do I pick it
B
2
Posts: 4
Reputation: 158

Post » Fri Feb 27, 2015 10:13 pm

<sarcasm>Thanks for the amazing answer. It was very quick too!</sarcasm>
B
2
Posts: 4
Reputation: 158


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests