Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
So this race I'm making, has mutations and it's possible for the character to be born with two extra limbs.
so I tried this... hero.field[rNumHands] += 2 but that didn't work. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Where is the rNumHands field, and where did your eval script look for it? Also, what kind of field is rNumHands?
|
#2 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
...I have no clue. I was proud of myself for finding it
It's in the race creator tab, size and shape - shows up under the fields button. But I don't see a location or timing for them. Not sure what time of field it is... |
#3 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Is a number a value or text?
If it's on the race, how do you target the race? |
#4 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Well, rNumHands is on the race, so you'd need to go there first. Also, you'll want to affect it early, so make sure your eval script runs early.
Fields which store numbers are value fields, and you need to add ".value" to the end of your transition to affect their contents. Fields which store words are text fields, and similarly you'd add ".text" when manipulating their contents. Check out the Intro to adding Content seminar video from last year for basics like different types of fields and how to transition where you want to go. https://www.youtube.com/watch?v=ZzrfEMuG_cw |
#5 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
sweet! Thanks guys.
|
#6 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
...and I found the ability...I was using a . in the wrong spot
it's herofield[tNumHands].value += field[abValue].value and I was a) not using an abValue field and b] I had the silly "." between hero and field. |
#7 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
this is so awesome...
|
#8 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I'm happy you're happy!
|
#9 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
I was pleased that I managed to work out the sexual dimorphic requirements and level requirements for the mutations.
The growth/size increase worked like a charm. my next trick is setting up a second mutation at level 8. |
#10 |
Thread Tools | |
Display Modes | |
|
|