YesNoOk

Show content

This section allows you to browse the content for this member. Note that you can only see content for which you have sufficient viewing permissions.

*
Chon Wang is Offline
Contact Chon Wang:

Chon Wang

Contributor

Messages by Chon Wang

    

Re:Character - Stage interaction

 April 14, 2004, 05:27:34 AM View in topic context
 Posted by Chon Wang  in Character - Stage interaction  (Started by VIB April 11, 2004, 01:17:59 PM
 Board: Code Library

Hum... i made something like that (actually, very different and with many limitations) in my KFM. I´d like to know if it´s possible to make a stage like that ship in SOR2, where some punks throw grenades against the players.
    

Re:Invincibility

 February 27, 2004, 04:32:18 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

Messatsu: Hum... i didn´t notice that. Thanks :D

Digu Nut: Oof! By the way, i know her. I call her as "sctrl" when she and i are on the bed :D
    

Re:Invincibility

 February 27, 2004, 04:07:09 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

I like my code and it works  :D
    

Re:Invincibility

 February 27, 2004, 04:02:07 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

Well, i think i know what a state and a trigger are  ;D

When var(x) < 0 you can´t trigger var(x)? I mean, trigger1 = var(x) returns to sfalse if var(x) <= 0 or only when var(x) = 0?

And in case of using a different triggerization? Like gametime = 95 and !var(5)? Would it be useless?

If not, I think a better solution should be:

; sets
[State -3]
type = VarSet
var(5) = 300 ; time (in gameticks) of invincibility
trigger1 = gametime = 95 ; a condittion
trigger1 = !var(5)

; countdown
[state -3]
type = VarAdd
var(5) = -1
trigger1 = var(5) > 0

; invincible
[state -3]
type = NotHitBy
value = SCA
trigger1 = var(5) > 0

Edit: changed a trigger.
    

Re:Invincibility

 February 26, 2004, 09:18:01 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

    

Re:Invincibility

 February 26, 2004, 07:46:47 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

Well, the last State isn´t useless because it can be anything that the creator would want to use, not necessarily a stateno trigger.
    

Re:Creators Code Permissions

 February 24, 2004, 08:18:58 PM View in topic context
 Posted by Chon Wang  in Creator's Permissions (Started by JustNoPoint January 08, 2004, 06:34:32 PM
 Board: Resource Releases

    

Re:Invincibility

 February 24, 2004, 06:27:58 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

Yes, it´s written by me. I might have not understand your reply, because of my bad English: "By the way, your code doesn't at all look like code written for a tut...".
    

Re:Invincibility

 February 24, 2004, 06:10:47 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

I like this code don´t matter how it´s written :P
    

Invincibility

 February 24, 2004, 05:58:48 PM View in topic context
 Posted by Chon Wang  in Invincibility  (Started by Chon Wang February 24, 2004, 05:58:48 PM
 Board: Tips, Tricks, Tutorials

Make your char invincible.

; Use states -2 or -3 and a variable

; sets
[State -3]
type = VarSet
var(5) = 300 ; time (in gameticks) of invincibility
trigger1 = stateno = 1000 ; a condittion

; countdown
[state -3]
type = VarAdd
var(5) = -1
trigger1 = var(5)

; invincible
[state -3]
type = NotHitBy
value = SCA
trigger1 = var(5)

; resets
[State -3]
type = VarSet
var(5) = 0
trigger1 = var(5) < 0