How to define the current playing side without a number?!
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- zengetsu88
- Posts: 72
- Joined: March 29th, 2010, 7:25 pm
- Location: This Universe
How to define the current playing side without a number?!
Okay basically, how can I define in an event (FOR MULTIPLAYER HUMAN VS HUMAN) the current playing side so that I can mark it in the "side=" stuff that are under half of my tags. I cannot just designate team 1 and 2, because I don't know if it is team 1 or 2 who is playing or if they are even going to use the particular pieces of code.
So how can I generically define the current playing user as a 'side=' ... ?
This is pissing me off and I need to figure this out because so many of my creations are effected by it.
So how can I generically define the current playing user as a 'side=' ... ?
This is pissing me off and I need to figure this out because so many of my creations are effected by it.
my logic is sound
- PsychoticKittens
- Posts: 573
- Joined: May 29th, 2006, 8:49 pm
Re: How to define the current playing side without a number?
the variable "$side_number" is stored at the beginning of each turn as the current side.
so "side=$side_number" does just what you're saying.
so "side=$side_number" does just what you're saying.
Creator of: Mercenaries Era; Modern Combat
Future Projects: Faunima: Land of Monsters
Temporarily Dropped Projects: Zombie Horde
Future Projects: Faunima: Land of Monsters
Temporarily Dropped Projects: Zombie Horde
- Pentarctagon
- Project Manager
- Posts: 5730
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to define the current playing side without a number?
for future reference, this is a list of all automatically stored variables.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
- zengetsu88
- Posts: 72
- Joined: March 29th, 2010, 7:25 pm
- Location: This Universe
Re: How to define the current playing side without a number?
Thanks ya'll.
Thats what I thought but i am having trouble with it in a few pieces, I will play with it though.
Good to hear from you again Pentarctagon.
Thats what I thought but i am having trouble with it in a few pieces, I will play with it though.
Good to hear from you again Pentarctagon.
my logic is sound