northfield Posted December 9, 2010 Share Posted December 9, 2010 (edited) Hi everyone, I'm trying to add some training equipment for workout and fitness. The idea is that the player should get +1 strength and +30 carry weight at a one-time cost of hunger, dehydration and sleep for a period of 24m. So far all menus turn up correctly in-game, but when I activate nothing happens - the effects are not added to the player. Do I need other things than the script, the "spell" and the activator? Can someone please confirm that the script is functional and/or point me in the right direction. Thanks. scn 01DumbellRackSCRIPT short hitbutton begin onactivate showmessage 01DumbellRackMessage1 end begin gamemode set HitButton to GetButtonPressed if ( HitButton >0 ) if HitButton == 1 CastImmediateOnSelf 01RRRDumbellRackEffect showmessage 01DumbellRackMessage2 endif if hitbutton == 2 endif endif end Edited December 9, 2010 by northfield Link to comment Share on other sites More sharing options...
rickerhk Posted December 10, 2010 Share Posted December 10, 2010 If you have buttons on a message, they start at index 0. GetbuttonPressed returns -1 if nothing is hit set HitButton to GetButtonPressed if ( HitButton == -1 ) return if HitButton == 0 CastImmediateOnSelf 01RRRDumbellRackEffect showmessage 01DumbellRackMessage2 endif Link to comment Share on other sites More sharing options...
northfield Posted December 10, 2010 Author Share Posted December 10, 2010 I might be a little dense, but it seems it doesn't help with my problem if I change the index. I'm not sure, but do I need to add a perk as well for the bonus to take effect? Does anyone know? Link to comment Share on other sites More sharing options...
blove Posted December 10, 2010 Share Posted December 10, 2010 CIOS should have a reference, otherwise the effect is being applied to your scripted activator. Player.CastImmediateOnSelf 01RRRDumbellRackEffect Link to comment Share on other sites More sharing options...
northfield Posted December 10, 2010 Author Share Posted December 10, 2010 Hahaha so simple! It works great now. Thanks a lot blove your are a life-saver, have some kudos. Link to comment Share on other sites More sharing options...
Recommended Posts