![]() |
Increasing Damage
im pretty new to this, i did gs1 for 2 years, but i never figured out how to increase damage, not even in gs1. after the gs2 release i deleted all my scripts i couldnt convert, and im stuck with like staff boots and summon, a couple of diferent block scripts, and a faulty gun. im trying to increase damage in my Battle System. you may know from the other thread , i need to make that hit a 2, please help if you could that would be great. script is here for poeple who havent read other thread or thread was lost in the distant past of page 3.
PHP Code:
|
do thedamage(this.damage), what the ****?
Also, you can't read variables that are set serverside on the clientside, and vise versa. |
There's no such thing as a "do" command. Use something like hurt(this.damage), which is clientside-only (and also triggers the hurt gani), or player.hearts = player.hearts - this.damage, etc. If you're using a scripted HP system subtract from the hp variable rather than player.hearts.
As Corey said, make sure you set variables clientside if they're going to be used clientside. |
Quote:
Quote:
|
Quote:
setsword(player.swordimg, 2); Replace the "2" with power. |
Quote:
|
Quote:
|
i got the Do thing from an old system i deleted
|
Quote:
|
Quote:
In a while loop, the condition is executed first, and the loop running depends upon the condition being true before each loop. In a do ... while loop, the condition is checked after the loop is executed, and the loop will always run once before that condition is checked. |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 02:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.