Ok well.. I haven't made a post on Wiremod forum ever so yeah.. Well anyway I am new to E2 and I saw a tut on youtube on how to make a toggle-able security system but he used an add chip, greater than chip, and an multiply chip. So I was like "Hey.. A new project!" So what I did was transform that into 1 E2 chip and made it to where "/on" activates it and "/off" deactivates it. So I thought it was pretty neat.. But I also wanted hints to show up telling u how to use it well.. thats where I'm lost..
When it's spawned, everything is great, but when I die, it spams the hints 3 times.. As a beginner I need someone to tell me what i did wrong >< Any help is greatly appreciated. Thanks in advance!
Code:
@name Security Chip
@inputs Ranger1 Ranger2 Ranger3 Ranger4
@outputs Explode Indicator
interval(20)
if(first()|duped()){
Owner=entity():owner()
F=Owner
hint("~Security System~",10)
hint("Type /on to Activate",10)
hint("Type /off to Deactivate",10)
hint("Made by Iced Out",10)
gSetGroup("Security")
}
Add=Ranger1+Ranger2+Ranger3+Ranger4
if (owner():lastSaid()=="/on") {Indicator=1}
if (owner():lastSaid()=="/off") {Indicator=0}
if (Indicator==1 & Add>0) {Explode=1}
if (Indicator==1 & Add<0) {Explode=0}
if (Indicator==0 & Add>0) {Explode=0}
if (Indicator==0 & Add<0) {Explode=0}
if (Indicator==0 & Add==0) {Explode=0}
if (Explode==1 & Indicator==1) {reset()} -----------------------------------------------
This was from another chip I had that
I didn't code.. So I'm pretty sure that
this is the problem area..
-----------------------------------------------
Code:
if(first()|duped()){
Owner=entity():owner()
F=Owner
hint("~Security System~",10)
hint("Type /on to Activate",10)
hint("Type /off to Deactivate",10)
hint("Made by Iced Out",10)
gSetGroup("Security")
} ----------------------------------------------
Bookmarks