Fantasy Draft Interactivity

Feb 06, 2018

Hi,

I'm trying to do an interactivity where the learner will have the option to add players to their roster. In this interactivity, I would like it to start with a blank board, with players names on post-its on the side.  Learners should be able to drag and drop the players they want  on their roster to the board. Each player has a certain dollar amount attached to them. I would like there to be a field that displays the total dollar amount of salaries they will need to pay, that automatically adjusts as the learner adds or removes players from the board. 

I've created a mock-up, but if the post-it is moved within the board twice, it adds the number twice, same when it is removed, it removes the number twice. 

How can I prevent it from doing that? 

Here is a link to a video showing the problem https://asu-teacherscollege.wistia.com/medias/y2a9zykmte 

2 Replies
Bob O'Donnell

You can do that using triggers and variables. Create a variable for the total dollar amount. Assign a trigger to each player that when dragged and dropped on the roster board it would "add" an assigned dollar amount to the "Total_Dollar" variable. Vice versa if they remove said player then the trigger would "deduct" that amount from the total dollar variable. Should work out ok.

You might want to search the site for some examples. There's a lot of similar examples out there.

Gloria Minnihan

Thanks. I think I've got the triggers and variables part down, it's just that if someone accidentally drops it in the same place twice, it will continue to add/subtract. I've attached the file to the original post. 

Is there a way to prevent it from adding/subtracting if it was already added/subtracted?  Here is a link to the video showing the problem. 

https://asu-teacherscollege.wistia.com/medias/y2a9zykmte 

This discussion is closed. You can start a new discussion or contact Articulate Support.