Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to Xbox Chaos: Modding Evolved

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
AbandonedCashew

Support
Having some trouble with logic here...

5 posts in this topic

Here's some background knowledge:

Each team has a base_switch (GlobalObject0 output each time it's interacted with), whose ObjectNumeric0 is added 1 for each objective captured (event x).

Each team has a TeamNumeric which is adds 1 every time one of their objects are destroyed (event y).

I want to award a team points for the other team having those numerics match.

 

Now for the problem:

I can get it to award points when both teams have their global object's object numerics maxed (there is a maximum), but I can't get it to award points when event x's numeric is less than maxed.

 

And this is what I need:

I need a way to reference the team that owns GlobalObject0's numeric. The problem is that object is outputted in the incident trigger and possibly alternates teams each respective incident. :/

The other thing is that along with that I need a stable way to reference the other team when a team has their ObjectNumeric maxed.

 

This is so difficult because it's all in the object death event trigger...

 

 

So if anyone can figure this out with me you will get credits when the gametype is completed :)

Share this post


Link to post
Share on other sites

Can't you get the DeadObject's owner team?

Yes, and I do. But the problem has been that I need to know which object numeric is with which team, when the object alternates teams. I think I am able to do this by having a loop in the incident trigger that has a team numeric alongside the object numeric. But when I try that, the scoring becomes so f-ed up I can't even explain.

Share this post


Link to post
Share on other sites

Could you use a TeamNumeric instead of an ObjectNumeric? No idea why it would only work when it's maxed out tho - might need to see some code to figure that out. 

Share this post


Link to post
Share on other sites

Could you use a TeamNumeric instead of an ObjectNumeric? No idea why it would only work when it's maxed out tho - might need to see some code to figure that out. 

I am trying:

 

 

 I think I am able to do this by having a loop in the incident trigger that has a team numeric alongside the object numeric. But when I try that, the scoring becomes so f-ed up I can't even explain.

But as I said previously... ^

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0