WILLIE_TROMBONE Posted May 15, 2011 Share Posted May 15, 2011 Hi guys, I need some help writing a cleo script cuz I'm kinda a noob. Anyway, how do I incorporate this opcode: 055F: set_player $PLAYER_CHAR max_armour += 50 into a script? I wanna change the players max armour using this code. Thanks for the help guys! Link to comment Share on other sites More sharing options...
OrionSR Posted May 15, 2011 Share Posted May 15, 2011 Mod requests belong in the Request Mod Thread pinned at the top of the Coding sub-forum. But... Compile and Copy this code. Be careful not to use it too many times. The maximum possible max-armor is 255. Anything more will roll over. So if your current max armor is 250, and then you add another 50 by pressing PageDown again, or completing the vigilante mission for the first time, the max armor will be set to 44 (=250+50-256). {$CLEO .cs}0000:while true wait 0 if 0AB0: key_pressed 0x22 // PgDn then 055F: set_player $PLAYER_CHAR max_armour += 50 00BB: show_text_lowpriority GXT 'FESZ_LS' time 2000 flag 1 // Load Successful. wait 2000 endend Link to comment Share on other sites More sharing options...
ZAZ Posted May 15, 2011 Share Posted May 15, 2011 (edited) increase armour as well as max armour, max = 250, restore to 0 if more than 250 (or maybe 255 as OrionSR mentioned) it has no visual effect to the amour bar 055F: set_player $PLAYER_CHAR max_armour += 10 increase armour till it reachs the max armour value it has an effect to the amour bar only if the bar is not full or if you decrease the armour 035F: actor $PLAYER_ACTOR armour += 10 decrease armour: 035F: actor $PLAYER_ACTOR armour += -10 Edited May 15, 2011 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
WILLIE_TROMBONE Posted May 15, 2011 Author Share Posted May 15, 2011 Thanks for the help guys! I'll try this out Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now