harIII Posted September 27, 2009 Share Posted September 27, 2009 I'm am making a force power that is suppose to increase in strength as you level up. I need a conditional script that states something to the effect of, "if the PC is at level 1, the power does 10 units of damage; if the PC is at level 2, the power does 20 units of damage and so on." Link to comment Share on other sites More sharing options...
Nirran Posted September 27, 2009 Share Posted September 27, 2009 try this int nDamage; int nPCLevel = GetGlobalNumber("G_PC_LEVEL"); if(nPCLevel == 1){ nDamage = 10; } else if (nPCLevel == 2){ nDamage = 20; } that wont compile,but its one way of doing it Nirran Link to comment Share on other sites More sharing options...
harIII Posted September 27, 2009 Author Share Posted September 27, 2009 wow, thanks; that was quick. I'm not at the point to where I can start working on the power yet, but I'm close and I'll try it then. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.