View Single Post
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old January 9th, 2019, 02:55 PM
Quote:
Originally Posted by ShadowChemosh View Post
Your really close!

Code:
     ~Take the user's picks and make them class skills
     if (field[usrChosen1].ischosen <> 0) then
        perform field[usrChosen1].chosen.assign[Helper.ClassSkill]
     endif
To break this up think of this way. You PERFORM against the PICK a specific ACTION (assign).

The pick in this case is field[usrChosen1].chosen and then your action is "assign[]" a tag. Perform is usually used when dealing with tag actions like (delete, assign, pulltags, pushtags). Normally its not used with fields when doing normal arithmetic like addition, subtraction etc.
Thanks again SC, that worked. There's one last thing to fix. The ability asks the user to select three non-class skills. The dropdown window for the first two appear normally, but I think that the panel width is cutting off the third selection window. How to I tell the editor to 'wrap' the text so that the third selection appears below the first two?
Bob G is offline   #11 Reply With Quote