Script related questions
Moderator: Developers
- penguinflyer2222
- Queen Penguin (Senior Member)
- Posts: 6614
- Joined: Wed Jul 23, 2008 1:51 am
- Zefz
- Squirrel Knight (Administrator)
- Posts: 3820
- Joined: Wed Jul 23, 2008 1:27 am
- Location: Norway
- Contact:
Yes all stat values are equal to *256
That means 1024 life is 4 life points.
You can also write tmpargument = 4 < 8
which also equals 1024 or 4 life points. Same as 9 < 8 becomes 9 life points. (The < indicates a bitewise shift)
That means 1024 life is 4 life points.
You can also write tmpargument = 4 < 8
which also equals 1024 or 4 life points. Same as 9 < 8 becomes 9 life points. (The < indicates a bitewise shift)
Last edited by Zefz on Sat Nov 01, 2008 11:11 am, edited 1 time in total.
- Ben Urban
- Cobol (Esteemed member)
- Posts: 829
- Joined: Sat Oct 04, 2008 10:49 pm
- Location: Maryland, USA
- Contact:
That shift appears to be in the wrong direction...
Thanks to penguinflyer2222 for the avatar, and to penguinflyer5234 for hosting it.
- Agent of Dread
- Protector (Senior Member)
- Posts: 8991
- Joined: Wed Jul 23, 2008 8:46 pm
- Location: Australia
- Contact:
I suppose this has to do with some form of game scripting, so...
Can any module support more than 4 tileset images?
Can any module support more than 4 tileset images?
- Linktree: linktr.ee/trilbs -
- Agent of Dread
- Protector (Senior Member)
- Posts: 8991
- Joined: Wed Jul 23, 2008 8:46 pm
- Location: Australia
- Contact:
- penguinflyer5234
- Sheep (Developer)
- Posts: 3025
- Joined: Wed Jul 23, 2008 1:39 am
- Location: Best Southwest
- ShellShocker
- Rust Eater (Senior Member)
- Posts: 3625
- Joined: Thu Jul 24, 2008 6:37 am
- Location: Australia
Should I download the new trunk then, is it playable?
Can you add the function to the 2.6.x trunk, if not?
(I'm very obsessed at making sure my stuff is working right, if I don't see for myself, I don't regard it as such, it's been keeping me back for the past couple of days... Well, that, and Geneforge 4 )
Also, I'm sending you a PM soon.
Can you add the function to the 2.6.x trunk, if not?
(I'm very obsessed at making sure my stuff is working right, if I don't see for myself, I don't regard it as such, it's been keeping me back for the past couple of days... Well, that, and Geneforge 4 )
Also, I'm sending you a PM soon.
- Ryrgwryr
- Grub Bug (Rookie)
- Posts: 42
- Joined: Sun Dec 14, 2008 12:49 pm
- Location: I'm here right now.
Umm, I have few questions:
1. Is there a function to change size without enchanting?
Because battleaxe is naturally 1.7 size and it's not compatibile with ChangeTargetClass I think, and I really don't want lvled battleaxe.
2. Is it possible to change holder's content using weapon script?
Like this:
Because it doesn't seem to work for me. Basically I have a random cobol weapon object, I wanted to improve it, whips for example have higher range and cobols use content to determine when to attack target.
I'm using 2.74v.
Entire randomising script looks like that if sth.:
1. Is there a function to change size without enchanting?
Because battleaxe is naturally 1.7 size and it's not compatibile with ChangeTargetClass I think, and I really don't want lvled battleaxe.
2. Is it possible to change holder's content using weapon script?
Like this:
Code: Select all
IfStateIs13
SetTargetToWhoeverIsHolding
tmpargument = 160
SetContent
I'm using 2.74v.
Entire randomising script looks like that if sth.:
Code: Select all
//Randomize weapon
IfHeldInLeftHand
tmpargument = rand % 3
SetState
IfStateIs0
tmpargument = 78
IfStateIs1
tmpargument = 78
IfStateIs2
tmpargument = 78
IfStateIs3
tmpargument = 56
ChangeTargetClass //Change it to whatever tmpargument was set!
Else
tmpargument = 0 //Melee weapon
IfContentIs
tmpargument = rand % 15
SetState
IfStateIs0
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 56
IfStateIs1
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 56
IfStateIs2
tmpargument = 56
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
IfStateIs3
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 56
IfStateIs4
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 56
IfStateIs5
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 56
IfStateIs6
SetTargetToWhoeverIsHolding
tmpargument = 140
SetContent
SetTargetToSelf
tmpargument = 77
IfStateIs7
SetTargetToWhoeverIsHolding
tmpargument = 140
SetContent
SetTargetToSelf
tmpargument = 77
IfStateIs8
SetTargetToWhoeverIsHolding
tmpargument = 140
SetContent
SetTargetToSelf
tmpargument = 77
IfStateIs9
SetTargetToWhoeverIsHolding
tmpargument = 140
SetContent
SetTargetToSelf
tmpargument = 77
IfStateIs10
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 74
IfStateIs11
SetTargetToWhoeverIsHolding
tmpargument = 120
SetContent
SetTargetToSelf
tmpargument = 74
IfStateIs12
SetTargetToWhoeverIsHolding
tmpargument = 160
SetContent
SetTargetToSelf
tmpargument = 208
IfStateIs13
SetTargetToWhoeverIsHolding
tmpargument = 160
SetContent
SetTargetToSelf
tmpargument = 208
IfStateIs14
SetTargetToWhoeverIsHolding
tmpargument = 160
SetContent
SetTargetToSelf
tmpargument = 207
IfStateIs15
SetTargetToWhoeverIsHolding
tmpargument = 160
SetContent
SetTargetToSelf
tmpargument = 207 //Warning: This weapon isn't in global objects(whip and battleaxe).
ChangeTargetClass //Change it to whatever tmpargument was set!
tmpargument = 1 //Ranged weapon
IfContentIs
tmpargument = rand % 3
SetState
IfStateIs0
tmpargument = 61
IfStateIs1
tmpargument = 71
IfStateIs2
tmpargument = 61
IfStateIs3
tmpargument = 71
MakeAmmoKnown
ChangeTargetClass //Change it to whatever tmpargument was set!
Studying...