RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Actor ID from Party ID

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 74
I'm baaack!
I tried to make this script already but I haven't taken enough tutorials so I couldn't... <_<


I want a script that controls variable 10 (changable through script) when a party members ID is given through script call. Basicly the the variable is set to know the actor ID of the selected party member. I currently need the script for a newley thought of feature in my game, Terramon (readable in it's thread), but I will need it for more things.

It should be compatable with modern algebra's menu script PECMS

Please reply at http://www.omega-dev.net/forums/showthread.php?tid=1133

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Code: [Select]
variable = 10
member = 1
$game_variables[variable] = $game_party.members[member].id
That should do it. Just use that script call in an event to check it.
it's like a metaphor or something i don't know

***
Rep:
Level 74
I'm baaack!
... I just checked my request at omegadev and the exact same script was made but with 4 lines instead of 3... the 4th was $game_party.members[member].id...

Did you write it or find it?


EDIT:
Nvm... his says party_member instead of member...



EDIT2: I was about to ask if it was script call but I realized it is...
« Last Edit: June 09, 2011, 02:02:26 AM by RPGMakerVX52 »

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
They both do the same thing.
He split up the 3rd and 4th lines, I don't know why, but if you read it it's the same. The difference between member and party_member is just the name, it doesn't change a thing. Yeah I wrote it, but so did he.
It's well known among scripters that to make a variable equal something you use $game_variables[VARIABLE_ID] = whatever, and to reference the actor's ID you just need to use that global, $game_party.members[ACTOR_ID].id. Doesn't do anything different.
it's like a metaphor or something i don't know

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Well, you have to spit the 3rd line into two to make it fit in a Script call. But pasting yours in there will do it automatically.

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Urr, I wasn't on a computer with VX at the time. I forgot how limiting the script call box was in terms of size.
« Last Edit: June 09, 2011, 01:36:57 PM by Pacman »
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 69
RMRK Junior
Will this also work/ can this be done in XP?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
It would be $game_party.actors in RMXP if I recall, but otherwise the same.

**
Rep: +0/-0Level 69
RMRK Junior
Excellent. Thank you!

***
Rep:
Level 74
I'm baaack!
I tried this with PECMS and I couldn't make it automaticly know which actor was selected to be released. Party Member selection doesn't seem to work with this script call. Also, the reason I like IMP1's better is because of how it was written... party_member seems better to me then member... Idk y...