| View previous topic :: View next topic |
| Author |
Message |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Tue Apr 22, 2008 3:21 pm Post subject: |
|
|
You could reduce size with scale tool in the model editor before you animate the gun. It is better. _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
PurpleSquerkle Supreme Cookiemancer


Joined: 28 Oct 2007 Age: 17 Posts: 4356 Location: Midwestern US
|
Posted: Tue Apr 22, 2008 3:48 pm Post subject: |
|
|
The only working version I have doesn't have a scale tool.
Besides, someday we may WANT a gun the size of someone's head.  _________________
+ PurpleSquerkle
--My website--
Latest update= 7/15/08; Three new midi loops.
{new Squerkle coming as soon as I stop being lazy} |
|
| Back to top |
|
 |
woodmouse Skinner


Joined: 19 Apr 2008 Age: 14 Posts: 3061 Location: Finland
|
Posted: Sat May 03, 2008 6:00 pm Post subject: |
|
|
How can I script a character that heals good guys and damages bad guys at the same time? The Angel was meant to do that but now it only damages the enemies... _________________
 |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Sat May 03, 2008 6:02 pm Post subject: |
|
|
Maybe. There is already something like that where Holy damage heals non undead creatures.
Maybe you should spawn two particles at the same time. One only hits hate group and damages while the other only hits friends and heals. _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
woodmouse Skinner


Joined: 19 Apr 2008 Age: 14 Posts: 3061 Location: Finland
|
Posted: Sat May 03, 2008 6:05 pm Post subject: |
|
|
It is like that. "Holy" for part0 and part1, "Evil" for part2. _________________
 |
|
| Back to top |
|
 |
Chainsaw Lumberjack


Joined: 20 Oct 2007 Age: 15 Posts: 2378 Location: Israel
|
Posted: Wed May 21, 2008 6:08 pm Post subject: |
|
|
Didn't think it was worth a new topic.
I have this script, It's meant to make a throwing weapon attack faster if you have higher Dexterity, This is how it's supposed to work:
| Code: | Dex Reload time
<15 None, Weapon drops on the ground and a message is displayed
15 40
20 30
25 20
30+ 10 |
The 15, 20 and 25 ones work correctly.
The <15 throws at a rate of 40 (Not supposed to throw), and the 30+ drops the weapon (Supposed to throw at a rate of 10).
Here's my script, I tried many different combinations, and this is the most successful one, can anyone show me what I did wrong in this script?
| Code: | //Attack speed modifiers, based on dex.
IfUsed
SetTargetToWhoeverIsHolding
tmpx = 3840
tmpy = targetdex
IfXIsMoreThanY
tmpargument = 40
SetReloadTime
Else
SetTargetToWhoeverIsHolding
tmpx = 5120
tmpy = targetdex
IfXIsMoreThanY
tmpargument = 30
SetReloadTime
Else
SetTargetToWhoeverIsHolding
tmpx = 6400
tmpy = targetdex
IfXIsMoreThanY
tmpargument = 20
SetReloadTime
Else
SetTargetToWhoeverIsHolding
tmpx = 7680
tmpy = targetdex
IfXIsMoreThanY
tmpargument = 10
SetReloadTime
Else
DetachFromHolder
tmpargument = 4
SendMessageNear
End //
|
_________________ "To err is human, to really mess up requires a computer."
Chainsaw's Cell [Last update: 27th May '08]
 |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Wed May 21, 2008 6:13 pm Post subject: |
|
|
A MUCH easier solution:
| Code: |
IfUsed
SetTargetToWhoeverIsHolding
tmpargument = 40 - targetdex > 8 //-1 per point of dex
SetReloadTime
tmpx = rand & 1023 + targetdex //0-4 + dex
tmpy = 3640 //Need about 14
IfXIsLessThanY
DetachFromHolder
tmpargument = 4
SendMessageNear
|
_________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
Chainsaw Lumberjack


Joined: 20 Oct 2007 Age: 15 Posts: 2378 Location: Israel
|
Posted: Wed May 21, 2008 6:26 pm Post subject: |
|
|
Thanks, I can't believe I didn't think of that...  _________________ "To err is human, to really mess up requires a computer."
Chainsaw's Cell [Last update: 27th May '08]
 |
|
| Back to top |
|
 |
Maxaxle Elite Gamer


Joined: 06 Oct 2007 Age: 15 Posts: 2717 Location: San Diego
|
Posted: Wed May 21, 2008 7:10 pm Post subject: |
|
|
@Zefz: I like to use the Tesla Gonne, but it's held and used like a Wand of Lightning. How can I make it use the same grip and animation as a Gonne? Also, how can I make a Recharger for it that recharges the Tesla Gonne every 5 seconds, when held with the Tesla Gonne in the other hand? _________________ http://www.freewebs.com/maxaxle88/
Inventor class last updated: July 9, 2008
Download: https://sourceforge.net/projects/maxaxlesegoboos
FREE PIZZA TOMORROW |
|
| Back to top |
|
 |
PurpleSquerkle Supreme Cookiemancer


Joined: 28 Oct 2007 Age: 17 Posts: 4356 Location: Midwestern US
|
Posted: Wed May 21, 2008 7:12 pm Post subject: |
|
|
That's because it IS the wand of lightning. But it looks like a gonne.
I can't believe the stupid thing still exists; it needs a lot more work! (firstly, it should work differently than the lightning wand)
Anyway, it's in the data file. Attack type. Should be "XBOW" instead of "ZAP." _________________
+ PurpleSquerkle
--My website--
Latest update= 7/15/08; Three new midi loops.
{new Squerkle coming as soon as I stop being lazy} |
|
| Back to top |
|
 |
Maxaxle Elite Gamer


Joined: 06 Oct 2007 Age: 15 Posts: 2717 Location: San Diego
|
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Wed May 21, 2008 8:46 pm Post subject: |
|
|
Much better to use the zap particle in a Gonne object.
You need to code some script for battery or something:
| Code: |
IfTimeOut
tmpargument = 200 //every 4 seconds
IfHeld
SetTargetToWhoeverIsHolding
tmpargument = [GONN]
IfTargetHoldingItemID
SetTargetToTargetLeftHand
IfTargetHasID
DoNothing
Else
SetTargetToTargetRightHand
IncreaseTargetAmmo //This function is not in the game yet
|
You can use RestockTargetAmmoIDFirst instead, but it refills all ammo. _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
woodmouse Skinner


Joined: 19 Apr 2008 Age: 14 Posts: 3061 Location: Finland
|
Posted: Fri May 23, 2008 5:46 pm Post subject: |
|
|
Does anyone know how to make a weapon that follows the player and attacks the enemies by itself? I would like to make that kinda weapon... _________________
 |
|
| Back to top |
|
 |
Chainsaw Lumberjack


Joined: 20 Oct 2007 Age: 15 Posts: 2378 Location: Israel
|
Posted: Fri May 23, 2008 6:03 pm Post subject: |
|
|
| woodmouse wrote: | | Does anyone know how to make a weapon that follows the player and attacks the enemies by itself? I would like to make that kinda weapon... |
That sounds more like a pet. _________________ "To err is human, to really mess up requires a computer."
Chainsaw's Cell [Last update: 27th May '08]
 |
|
| Back to top |
|
 |
woodmouse Skinner


Joined: 19 Apr 2008 Age: 14 Posts: 3061 Location: Finland
|
Posted: Fri May 23, 2008 6:04 pm Post subject: |
|
|
Well, a petbow.  _________________
 |
|
| Back to top |
|
 |
|