Username:


Password:


Remember me


  • Find Us On Facebook



Enforce Weapons Limits

Have a question about how to do something in the datafiles? Ask it here, we'll help if we can. NOTE: We cannot teach you how to use ABCREATE or how our files work, we don't have the time.

Enforce Weapons Limits

#1  Postby Homer_S » Mon Mar 19, 2007 5:54 pm

I have a datafile with an entry organized as follows

Parent Unit
-Champion
-Child Unit

How can I implement a limit on a weapon, when 1 can be in either the parent or the child but not both? It works now that both parent and child can take 1 but only 1 per sub-unit, I want it to work such that only one of them can take it, graying our the option in the other sub-unit. I imagine that it has something to do with inheritance.

Thanks,
Homer Out
User avatar
Homer_S
Site Admin
Site Admin
 
Posts: 1499
Joined: Thu Nov 16, 2006 12:00 am
Location: Libertyville, IL, USA

#2  Postby harkan » Tue Mar 20, 2007 6:25 am

children are processed after parents apparently (see Rob's post in the LW forum), however u could try setting a tag if the user selects the weapon on the parent and applying that to the children - make this a very high priority (between 10 - 20??)

Use a live statement on the children to check for the presence of this tag

Doing it the reverse way is not possible I think, apart from maybe tagging the option and setting a rule with a very low priority (200+) to count the number of tags, if more than one then show an error
harkan
Site Admin
Site Admin
 
Posts: 1204
Joined: Sat Jun 17, 2006 12:00 am
Location: Yorkshire, North of England


Return to Datafile Programming Support

Who is online

Registered users: No registered users

cron