Ranokoa Posted December 9, 2009 Share Posted December 9, 2009 OKAY: Two things, this is a seperate triggerbox script im getting wrong still and just scrapped that has everything to do with the other request, but does it differently, and thus is a different topic. Second:I suck at scripting sooo bad... Rather than parent ref I now need a triggerbox that when you pass through it it disables 3 specific referance IDs, and when passing through again enables them and resets. Basically forever disabling and enabling so long as the player passes through it. Here is the script (which still doesn't work 100% right) from the other triggerbox, I simply need it to do what it does but instead to 3 unique referance ID's. 4 days no sleep I cant think. Sleeping pills are being picked up so I can address this issue, just got back from doctors so YES to those whom are nice enough to tease me with their superior and ultimate knowledge until i sleep it is being taken care of... hopefully.. oh god please... Here is the old script, actually rather new, but for a different generic purpose. The one i need above is for one, possibly used again but doubtful, much needed purpose in the same general idea with the same mod, just again, the old one will not suffice and is thus useless for THIS purpose. BTW I will not tell the purpose yet cause im still makin the mod. :D So far as i know the idea hasnt been done before and i wanna keep it that way till im done! WOOT. scn RTrigZoneScript short triggered ref target begin onTrigger player if triggered == 0 set target to getParentRef target.disable playsound AMBStoneShift set triggered to 1 elseif triggered == 2 target.enable playsound AMBStoneShift set triggered to 3 else return endif end begin gameMode if triggered == 1 set triggered to 2 elseif triggered == 3 set triggered to 0 endif end Also if it is possible for someone to figure out why this one doesn't work please let me know. Example of how they should work, they work the same but again second one that is needed is for 3 specific refs while the one above is for parent refs which wont do here, but what they both should do in an example is this: Say I have a carrot on a plate in front of me. I want to eat that carrot. I walk towards that carrot and through the above scripted triggerbox and the carrot disables and thus disappears. Now im dissapointed, so I walk back through the triggerbox and the carrot enables and thus returns. I see that it is back and now want it again. I walk back to the carrot. It disables again. This process never ends because the script always does this when walking through it. The second script is the same, except theres a carrot, a beer, and a human heart. Now that all sounds dandy and im hungry so i walk towards the carrot, the beer, and the human heart, but they dissappear and disable as i walk through the triggerbox. Now im disappointed, so i walk back in tears. I turn around and see that the carrot, the beer, and the delicious human heart are back on the table, and or, enabled. Now i walk towards the carrot, the beer, and the human heart because i am hungry. As I walk back towards them and through the triggerbox the carrot, the beer, and the human heart disappear. Now im disappointed and walk back. Again, same concept, just 3 unique ref ID's rather than target.getparentref. The current script above will work ONCE but only half work. This is what it does. I walk to the carrot on the table and it disappears. Now im disappointed and walk back. I look back at the table and it is still gone. Now im uber disappointed. It will disable only one time, and never enable after walking through it again. Idk what to do. Thanks. Be well, sleep well, fight well, live long.~Ranokoa PS: I just made myself hungry. Link to comment Share on other sites More sharing options...
Argomirr Posted December 10, 2009 Share Posted December 10, 2009 The other script I wrote didn't work because I accidentally used "else" rather than "elseif triggered == 1 || triggered == 3". I think the fixed script that I posted in the other topic should work. This one here won't work because OnTrigger blocks keep running every frame until all refs leave the trigbox. Link to comment Share on other sites More sharing options...
Ranokoa Posted December 10, 2009 Author Share Posted December 10, 2009 Kk thanks. After some much needed 14 hour sleep i think plus another 4 from earlier YAY i figured out a loop hole in 5 seconds to this one lol. Ill just make em absalutely need to use an activator like a button or something. Shouldnt be a big hassle. Link to comment Share on other sites More sharing options...
Recommended Posts