Exodus1111 Posted November 13, 2010 Share Posted November 13, 2010 My mod is coming along, ill have it out by monday hopefully.But ive run into a snag as im not familiar with the Scripting. I need to put FormList into an IF statement using GetEquipped. Something like this : If Player.GetEquipped == FormList.MyFormList Im assuming its not THAT easy, whats the correct syntax here ? -Exo Link to comment Share on other sites More sharing options...
Exodus1111 Posted November 13, 2010 Author Share Posted November 13, 2010 Or howbout: If Player.GetEquipped == IsInList MyFormList That one looks more probable. -Exo Link to comment Share on other sites More sharing options...
fronzelneekburm Posted November 13, 2010 Share Posted November 13, 2010 Just take a look at the game itself. For example to check if the player is wearing NCR armor the game uses: if player.GetEquipped FactionGearNVNCR == 1 It's really that easy. Just take a peek how its done in the original game, that usually helps a lot. Link to comment Share on other sites More sharing options...
Exodus1111 Posted November 13, 2010 Author Share Posted November 13, 2010 Just take a look at the game itself. For example to check if the player is wearing NCR armor the game uses: if player.GetEquipped FactionGearNVNCR == 1 It's really that easy. Just take a peek how its done in the original game, that usually helps a lot. oooh, there we go, good example. im assuming FactionGearNVNCR is a formlist. Thanks a lot m8. -Exo Link to comment Share on other sites More sharing options...
fronzelneekburm Posted November 13, 2010 Share Posted November 13, 2010 Yeah FactionGearNVNCR is indeed a formlist, just containing all armors that count as "NCR". Replace that with whatever your list is called. Link to comment Share on other sites More sharing options...
Exodus1111 Posted November 13, 2010 Author Share Posted November 13, 2010 Yeah FactionGearNVNCR is indeed a formlist, just containing all armors that count as "NCR". Replace that with whatever your list is called. Sw33t. Thank you very much. -Exo Link to comment Share on other sites More sharing options...
Cipscis Posted November 13, 2010 Share Posted November 13, 2010 Just take a look at the game itself. For example to check if the player is wearing NCR armor the game uses: if player.GetEquipped FactionGearNVNCR == 1 It's really that easy. Just take a peek how its done in the original game, that usually helps a lot.Even that is more complicated than it needs to be. This is all you'd need to check if the player has at least one item in that form list equipped:if player.GetEquipped FactionGearNVNCR@Exodus1111:I recommend you take a look at my Scripting for Beginners tutorial, where I go over the basics of Fallout script syntax. Cipscis Link to comment Share on other sites More sharing options...
Exodus1111 Posted November 13, 2010 Author Share Posted November 13, 2010 Just take a look at the game itself. For example to check if the player is wearing NCR armor the game uses: if player.GetEquipped FactionGearNVNCR == 1 It's really that easy. Just take a peek how its done in the original game, that usually helps a lot.Even that is more complicated than it needs to be. This is all you'd need to check if the player has at least one item in that form list equipped:if player.GetEquipped FactionGearNVNCR@Exodus1111:I recommend you take a look at my Scripting for Beginners tutorial, where I go over the basics of Fallout script syntax. Cipscis Alright thanks, cleaner code w00t! I checked out ur page earlier, wasnt planning to do any scripting for this, kinda just stumbled on it.But ill definitely check it out now. -Exo Link to comment Share on other sites More sharing options...
Recommended Posts